I'm trying to do a filterBy
query in Propel with Criteria::XXXX
as a second argument. Like the example in the documentation:
$books = BookQuery::create()
->filterByTags(array('novel', 'russian'), Criteria::CONTAINS_ALL)
->find();
But this always fails giving me the error that the Class Criteria is not found.
Otherwise Propel works just fine. Anybody an idea how this could be fixed?
You forgot to include the class '\Propel\Runtime\Query\Criteria'