-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Condition over table (without ->id
) is not working
#574
Comments
Current status: It is not working on the non-main side. The main side works due to the implementation detail that the property is mapped to the actual column (alarm_id) and then the comparison works. Since we do not do any optimization when Also, the Orm IntelliJ plugin auto-adds |
I am marking it as a feature request. |
->id
) is not working
testcase: public function testFilterAutomaticallyById(): void
{
$ean = new Ean();
$ean->code = '1234';
$ean->book = $this->orm->books->getByIdChecked(1);
$this->orm->eans->persistAndFlush($ean);
$eanId = $ean->id;
$this->orm->clear();
$ean = $this->orm->books->findBy(['ean' => $eanId])->fetch();
Assert::notNull($ean);
$book = $this->orm->eans->findBy(['book' => 1])->fetch(); // failure
Assert::notNull($book);
} |
To Reproduce
Produces
Expected behavior
It works.
Workaround
The text was updated successfully, but these errors were encountered: