2017 © Pedro Peláez
 

library doctrine-specification

image

benjam1/doctrine-specification

  • Thursday, March 6, 2014
  • by benjam1
  • Repository
  • 1 Watchers
  • 8 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

doctrine-specification

Implementation of the Specification pattern with Doctrine2., (*1)

This library is greatly inspired by Benjamin Eberlei's blog post., (*2)

The first I read about the specification pattern I was sceptic: "Oh man! It's too complicated, there might be a simpler solution..." And I'm not the only one according to the comments! Then I tried this solution and I had to admit that it brings flexibility into your repository. Now you can use this library as a starting point for your project to use the specification pattern., (*3)

Usage


$spec = new AndX( new MySpecA(), new MySpecB() ); $matcher = new Matcher(); $query = $matcher->match($em->getRepository('Foo\Bar'), 'r', $spec); $results = $query->getResults();

TODO

[ ] Specification generator [ ] Dynamic specification creation, (*4)

The Versions

06/03 2014

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires