[~TASK] Extbase (Persistence): Added count() to the QueryInterface. Related to #4991.
authorJochen Rau <j.rau@web.de>
Tue, 27 Oct 2009 20:56:56 +0000 (20:56 +0000)
committerJochen Rau <j.rau@web.de>
Tue, 27 Oct 2009 20:56:56 +0000 (20:56 +0000)
typo3/sysext/extbase/Classes/Persistence/QueryInterface.php

index 7b5a37c..27c7710 100644 (file)
@@ -50,6 +50,14 @@ interface Tx_Extbase_Persistence_QueryInterface {
        public function execute();
 
        /**
+        * Executes the query against the database and returns the number of matching objects
+        *
+        * @return integer The number of matching objects
+        * @api
+        */
+       public function count();
+
+       /**
         * Sets the property names to order the result by. Expected like this:
         * array(
         *  'foo' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING,