williamespindola / field

Field is a little CMS providing only api and console resources
Other
3 stars 2 forks source link

Fix criteria Respect\Relational findBy method #14

Closed williamespindola closed 9 years ago

williamespindola commented 9 years ago

Exist a method set the conditions instead use fluent interface, the work is like this:

$repository = $this->getRepository();
$repository->setCondition($criteria);

return $repository->fetchAll($optimization[0]);