BasePeer::doUpdate( $selectCriteria, $updateCriteria, $con )


On May 31, 12:42 pm, "Oriol Mercadé" <[EMAIL PROTECTED]> wrote:
> Hello group!
> We would like to do massive updates or massive deletes to database without
> generating hundreds of queryes,
> We looked for the method doDelete(Criteria) and doUpdate(criteria)
> but we see that it is not avaiable in the propel classes of our symfony copy
> (1.0.0)
> we've seen that propel seems to handle those methods
>
> {{{
> method *doDelete* [line
> 64<http://propel.phpdb.org/docs/api/current/runtime-php4//__filesource/f...>
> ]  mixed doDelete(
> Criteria<http://propel.phpdb.org/docs/api/current/runtime-php4/propel.util/Cri...>$
> criteria, Connection &$con)
> Method to perform deletes based on values and keys in a *Criteria*.
>
> mixed doUpdate(
> Criteria<http://propel.phpdb.org/docs/api/current/runtime-php4/propel.util/Cri...>&$selectCriteria,
> Criteria<http://propel.phpdb.org/docs/api/current/runtime-php4/propel.util/Cri...>&$updateValues,
> Connection &$con)
> Method used to update rows in the DB. Rows are selected based on
> selectCriteria and updated using values in updateValues.
>
> Use this method for performing an update of the kind:
>
> WHERE some_column = some value AND could_have_another_column = another value
> AND so on.
>
> }}}
>
> The question is then,
> does symfony 1.0.1 support this? if not, is it safe to update propel
> libraries? how would you do that?
> thank you in advance!
>
> cheers,
> --
>         - Oriol Mercadé Figueras


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to