Created
April 8, 2015 10:30
-
-
Save Akii/c0ec424d0b855311a3b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function createQuery() { | |
$query = parent::createQuery(); | |
$constraintQuery = new ConstraintedQuery($query); | |
$constraintQuery->setDefaultConstraint( | |
$query->whatever() | |
) | |
return $constraintQuery; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment