is there a way to load data from DB from inside of instantiated model using Doctrine 2.x ?
Implementation in load() method:
$model = new Model();
$model->load($params);
$param = array with key => value pair which will be used to find data in DB, ex.: $param = array('id' => 1)
find() method from Doctrine\ORM\EntityManager doesn’t allow to pass instances and i could not find anything else.
Unfortunately loading data in instantiated object is not possible.
Workaround method is: