Jira issue originally created by user mnapoli:
When using criterias and doing the matching on a collection already loaded in memory, it will not work if filtering on embeddable objects.
$criteria = new Criteria();
$authorizations = $this->authorizations->matching($criteria);
Here the ClosureExpressionVisitor will try to get the property named ->actions.view instead of ->actions->view.
PHPUnit*Framework_Error*Notice : Undefined property: Tests\...\Model\ArticleAuthorization::$actions.view
Comment created by mnapoli:
I have opened a PR with a potential fix: doctrine/collections#27