#1567: $query->count() doesn't work
------------------------+---------------------------------------------------
  Reporter:  enrico     |       Owner:  jwage                
      Type:  defect     |      Status:  new                  
  Priority:  blocker    |   Milestone:  1.1.0                
 Component:  Behaviors  |     Version:  1.0.3                
Resolution:             |    Keywords:                       
  Has_test:  0          |    Mystatus:  Pending Core Response
 Has_patch:  0          |  
------------------------+---------------------------------------------------
Changes (by enrico):

  * summary:  SoftDelete and $query->count() doesn't work =>
              $query->count() doesn't work

Comment:

 Doesn't seems to be related to SoftDelete. I disabled SoftDelete and it
 worked for me but as I added a second condition it failed again:

 {{{
 $query = Doctrine_Query::create();
 $query->from('Project');
 $query->addWhere('user_id = ?', 1);
 $query->addWhere('deleted = ?', false);
 $query->count();
 }}}

 Just "count()" fails. The "execute()" method works.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1567#comment:1>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" 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.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to