nextras / orm

Orm with clean object design, smart relationship loading and powerful collections.
https://nextras.org/orm
MIT License
309 stars 59 forks source link

Error in findById function #418

Closed TonnyJe closed 4 years ago

TonnyJe commented 4 years ago

Describe the bug Hey. When I try something like this: $this->model->users->findById($id);

I got error Custom function Nextras\Orm\Repository\Functions\ConjunctionOperatorFunction has to implement IQueryBuilderFilterFunction interface.

To Reproduce Steps to reproduce the behavior. It could include:

  1. Code which you run: $this->model->users->findById($id);
  2. Definition of entities:
    /**
    * @property-read int           $id         {primary}
    * @property string             $email
    * @property string             $password
    * @property string             $fullName
    */
    class User extends Entity {}

Versions::

hrach commented 4 years ago

Hi, as you can see, the class implements that interface. Such error is also weird since it is a core-functionality. Could you please provide the stacktrace?

hrach commented 4 years ago

@TonnyJe could you please provide more info?

TonnyJe commented 4 years ago

No, because I already used NDBT instead, so I don't have this code anymore.