Login | Register
My pages Projects Community openCollabNet

Discussions > users > [propel] multiple inserts

propel
Discussion topic

Back to topic list

[propel] multiple inserts

Reply

Author Infernum Decaying <kruc333fix at yahoo dot com>
Full name Infernum Decaying <kruc333fix at yahoo dot com>
Date 2005-07-26 02:40:29 PDT
Message > Why not use the propel classes its what they are
created for.
>
> (just guessing at function names)
> $role1 = new RbacRole();
> $role1->setRole(​'Guest')->save();​
>
> $role2 = new RbacRole();
> $role2->setRole(​'User')->save();
>
> $role3 = new RbacRole();
> $role3->setRole(​'Administrator')-​>save();
>
> --
> RoVeRT

The problem is that I want to keep my role ids and
knowing that propel can't set primary keys, I must do
a custom sql statement.

As far as I know this is not possible:
$role = new RbacRole();
$role->setRoleId('1');
$role->setRoleName('Guest');
$role->save();

____________________​____________________​__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

« Previous message in topic | 1 of 13 | Next message in topic »

Messages

Show all messages in topic

[propel] multiple inserts Infernum Decaying <kruc333fix at yahoo dot com> Infernum Decaying <kruc333fix at yahoo dot com> 2005-07-26 02:40:29 PDT
     Re: [propel] multiple inserts Ron Rademaker <r dot rademaker at virtualbuilding dot nl> Ron Rademaker <r dot rademaker at virtualbuilding dot nl> 2005-07-26 02:44:07 PDT
         using propel in a MVC Alexander Wegener <alex at lms-media dot de> Alexander Wegener <alex at lms-media dot de> 2005-07-26 02:52:07 PDT
             RE: [propel] using propel in a MVC =?iso-8859-1?Q?S=F6nke_Ruempler?= <ruempler at topconcepts dot com> =?iso-8859-1?Q?S=F6nke_Ruempler?= <ruempler at topconcepts dot com> 2005-07-26 03:59:49 PDT
             RE: [propel] using propel in a MVC Alexander Wegener <alex at lms-media dot de> Alexander Wegener <alex at lms-media dot de> 2005-07-26 05:22:15 PDT
                 RE: [propel] using propel in a MVC cyruzb Bert Van den Brande 2005-07-26 05:58:05 PDT
                     RE: [propel] using propel in a MVC Alexander Wegener <alex at lms-media dot de> Alexander Wegener <alex at lms-media dot de> 2005-07-26 06:12:53 PDT
                     RE: [propel] using propel in a MVC runner Steven Hansen 2005-07-26 06:45:08 PDT
                         RE: [propel] using propel in a MVC Alexander Wegener <alex at lms-media dot de> Alexander Wegener <alex at lms-media dot de> 2005-07-26 06:51:07 PDT
                             RE: [propel] using propel in a MVC runner Steven Hansen 2005-07-26 07:01:30 PDT
             Re: [propel] using propel in a MVC tony_bibbs Tony Bibbs 2005-07-27 10:54:13 PDT
                 Re: [propel] using propel in a MVC "Ian P dot Christian" <pookey at pookey dot co dot uk> "Ian P dot Christian" <pookey at pookey dot co dot uk> 2005-07-27 10:59:07 PDT
                     Re: [propel] using propel in a MVC tony_bibbs Tony Bibbs 2005-07-27 11:12:38 PDT
Messages per page: