In my Symfony project I'm using SonataAdminBundle. And I got a question: For example I have some entity with a function:
class Entity {
protected $id;
public idBiggerThan($value) {
return $id > $value;
}
And I want to create a filter that filters list by the result of this function (for example to be able choose only entities that have id bigger that current user).
I understand that this filter can be written without using this function, but I have much more complex functions, for which I don't want to write queries.
Thanks for your help.
Aucun commentaire:
Enregistrer un commentaire