#1641: Table Count() ignore DQL listener
-------------------------+--------------------------------------------------
  Reporter:  rande       |       Owner:  jwage                
      Type:  defect      |      Status:  new                  
  Priority:  major       |   Milestone:  1.0.4                
 Component:  Attributes  |     Version:  1.0.3                
Resolution:              |    Keywords:                       
  Has_test:  0           |    Mystatus:  Pending Core Response
 Has_patch:  0           |  
-------------------------+--------------------------------------------------
Changes (by jwage):

  * milestone:  => 1.0.4

Old description:

> The Table::count method does not use DQL Listener. So mainly we may have
> a count of 4 but a DQL listener which add conditionnal clause changes
> this value.
>
> Doctrine::getTable('Post')->count() = 4
>
> Doctrine::getTable()->createQuery()->execute()->count() = 3
>
> Because the Post have a dql event listener which limit only enabled post
> to be selected.

New description:

 The Table::count method does not use DQL Listener. So mainly we may have a
 count of 4 but a DQL listener which add conditionnal clause changes this
 value.

 Doctrine::getTable('Post')->count() = 4

 Doctrine::getTable()->createQuery()->execute()->count() = 3

 Because the Post have a dql event listener which limit only enabled post
 to be selected.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1641#comment:3>
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