Say I have a model Ecosystemautomatically created using symfony from mine schema.yml. At some point in the code, I would like to get the records from the table.
I know there are several ways to do this with the Doctrine / Propel classes, but is there a way to do this directly using the model? I thought something like this:
$ecosystem = new Ecosystem();
$records = $ecosystem->find(...);
By the way, what is the preferred method for this kind of thing?
I am developing using CakePHP, and requests directly from Doctrine seem unnatural to me. What if I decide to switch to Propel tomorrow?
Thank!
source
share