Hi!

I have DbFinderPlugin on SF 1.2 with just Doctrine ORM (no mention of
Propel in code, no Propel plugins installed).

The problem begins when I have where() statement in code like this:
$this->article = DbFinder::from('BlogPost')->
    leftJoin('BlogComment')->
    where('Title', $this->getRequestParameter('title'))->
    groupBy('BlogPost.Id')->
    withColumn('COUNT(BlogComment.Id)', 'Comments')->
    findOne();

The error message is:
Fatal error: Class 'Criteria' not found in /Users/Bob/Sites/
massagesession/plugins/DbFinderPlugin/lib/sfModelFinder.php on line
223
Line #223 in /DbFinderPlugin/lib/sfModelFinder.php contains Propel-
related code: $comparison = Criteria::EQUAL;

And when I remove where() from first code in above it starts works
fine.

PS: I have been using the same code with DbFinder/Propel 3 days ago,
but looks that there is a problem with DbFinder/Doctrine someWHERE() :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to