Skip to content

Instantly share code, notes, and snippets.

@antonkril
Created June 30, 2011 21:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonkril/1057298 to your computer and use it in GitHub Desktop.
Save antonkril/1057298 to your computer and use it in GitHub Desktop.
DDD Filtering Enhancements
We couldn’t find any files to show.
@rid1
Copy link

rid1 commented Jul 2, 2013

class Repository {
// ...

public function findAllByFilter(Filter $filter) 
{
    $visitor = new FilterVisitor\QueryBuilderReflection ( new QueryBuilder () );
    //mistake?
            $visitor->visit ( $filter );
            //or
            $filter->accept($visitor);
            //?
}

// ...

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment