Details
Description
We want an API that allows users to filter collections to subsets on the SQL level during the runtime (not using DQL).
Example:
class Post
{
private $comments;
public function getRecentComments()
{
return $this->comments->select(Expression::lessThan("commentDate", new \DateTime("-7 days")));
}
}
The language of this Expressions for selecting entities out of a collection has to be so simple that it works on both arrays and any persistence backed data-source.
The Collection#select() method would return a new collection that is not equal the invoked collection.
Activity
Benjamin Eberlei
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Workflow | jira [ 13422 ] | jira-feedback [ 14020 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 14020 ] | jira-feedback2 [ 15884 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 15884 ] | jira-feedback3 [ 18140 ] |
Benjamin Eberlei
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |