Well, no.
The $con can be provided as a parameter of the save() methode. what
you describe is the default behavior from propel. You can force the
object to use a specific connection, in your controller for instance
...
So the correct code is : return parent::save($con);
Thomas
On Fri, May 23, 2008 at 4:00 PM, Eno <[EMAIL PROTECTED]> wrote:
>
> On May 22, 5:14 pm, "Thomas Rabaix" <[EMAIL PROTECTED]> wrote:
>
>> Just about the code, you have to provide de $con variable to the save method.
>
> Or add:
>
> if ($con === null)
> {
> $con = Propel::getConnection(self::DATABASE_NAME);
> }
>
> >
>
--
Thomas Rabaix
Internet Consultant
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---