Nyargh! I'm stupid)))

Hm, how I can insert additional data into OrgsUser table, like `post`? In
view I create input form like $form->input('OrgsUser.post');, but data from
this field is not inserted in orgs_users table. What's matter?

15 февраля 2010 г. 19:24 пользователь John Andersen <[email protected]
> написал:

> 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]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
С уважением, Александр Бармин.
Мой сайт: http://www.barmin-aleksandr.ru/

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