You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Daniel Spors edited this page Dec 19, 2023
·
2 revisions
Classes in file essentials/model/commonmodel.class.php
class CommonModel
Wrapper for anonymous chained database queries
Sometimes you will be too lazy to create a model class for each of your database tables.
Or perhaps there are some cross-tables that is not needed for, but you need to query them.
So this is for you:
$dataSource->Query('my_db_table')->all();
Will create a CommonModel and let you perform all chaining methods on it as if it was a real typed model.