DB.PHP - PHP ORM

Load using query and return single object instead of object array

When using \db\query or \db\by by default \db\table returns array of objects. If you want to get only first object than call:

$database->path->to->table->load ($query, true);

Second parameter of load notifies \db\table if user wants single object as result or array. True means single false means array. Default is false.