Got it :) An example using your information would be:
[code
$this->OrgUser->deleteAll( array( 'org_id' => $orgId, 'user_id' =>
$userId ) );
[/code]

Enjoy,
   John

On Feb 15, 2:09 pm, Александр Бармин <[email protected]>
wrote:
> rabota_ is prefix for table =)
>
> Can you take me an example of using DeleteAll?
>
> 2010/2/15 John Andersen <[email protected]>
>
>
>
> > Use the models deleteAll method! See the CakePHP book at:
> >http://book.cakephp.org/view/516/Deleting-Data#deleteAll-692
>
> > Note that your CREATE statement states that the HABTM table is named
> > "rabota_orgs_users" but your association definition in the Org model
> > mentions the table "orgs_users". Please check all your model names and
> > table names for inconsistencies!
>
> > Enjoy,
> >   John
[snip]

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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