Works perfect. Thanks for the quick help.

-Blake


On Sep 24, 9:07 am, Bert Van den Brande <[email protected]> wrote:
> You can call getAffectedRows() on any model class.
>
> From class Model :
>
> /**
>  * Returns the number of rows affected by the last query
>  *
>  * @return int Number of rows
>  * @access public
>  */
>     function getAffectedRows() {
>         $db =& ConnectionManager::getDataSource($this->useDbConfig);
>         return $db->lastAffected();
>     }
>
>
>
> On Thu, Sep 24, 2009 at 3:01 PM, blake <[email protected]> wrote:
>
> > I'm running an updateAll and would like to know the number of rows
> > that actually got updated. Is there an easy way to do this? The debug
> > query results at the bottom show me the number of rows affected, so
> > hopefully theres a way for me to access that?
>
> > Thanks,
> > -Blake
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to