Retrieve a record
There's different options to retrieve records using Micron. Micron comes with an object mapper. During record retrieval, the database record is mapped to an object and also generates relationship methods linking the object to other related objects.
To load a record, simply pass the ID, or Query of the linking to the record you're looking for (If nothing is passed, the first record in the table will be retrieved)
If the record does not exist a null will be returned.
Retrieve first customer.
Retrieve with Primary Key
Retrieve using Filters
All SQL valid queries compatible
Retrieve using SQL Query
Last updated