mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #791] [MERGED] Implemented "contains" operator for Criteria expressions #8712
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/791
Author: @mnapoli
Created: 9/16/2013
Status: ✅ Merged
Merged: 10/11/2013
Merged by: @guilhermeblanco
Base:
master← Head:CriteriaContains📝 Commits (1)
6f538c5Implemented "contains" operator for Criteria expressions📊 Changes
2 files changed (+7 additions, -0 deletions)
View changed files
📝
lib/Doctrine/ORM/Query/QueryExpressionVisitor.php(+5 -0)📝
tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php(+2 -0)📄 Description
Criteria expressions support the contains operator, and it is implemented for the ArrayCollection. However, it wasn't implemented in the QueryExpressionVisitor, the ORM implementation.
This is the implementation and the test.
The only thing I'm wondering: is the
%wildcard valid for all supported RDBMS for theLIKEoperator? After a quick search, it seems like so, but you guys probably know for sure.FYI it seems that someone created an issue for this, but it was closed: DDC-2394
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.