Oppps, this is embarrassing. I was missing the autoIncrement: true, in
my message schema.yml.
Nathan thanx for your time..
On Mar 16, 10:53 pm, maestro wrote:
> but it is! it is right there in the db.. isn't this interesting!
>
> On Mar 16, 10:29 pm, Nathan Rzepecki
> wrote:
but it is! it is right there in the db.. isn't this interesting!
On Mar 16, 10:29 pm, Nathan Rzepecki
wrote:
> That means it is not yet saved.
>
> -
> Nathan Rzepeckihttp://www.lionslair.net.au
>
> maestro wrote:
> > sadly $this->getObject()
t; within
>
> public function saveEmbeddedForms($con = null, $forms = null)
>
> Because by the time that is called the main object is then saved.
>
> -
> Nathan Rzepeckihttp://www.lionslair.net.au
>
> maestro wrote:
> > Still stuck!
>
Still stuck!
Looking a the sfPropelForm save() it is clear that the call to
saveEmbeddedForms comes after the main object is getting saved. I see
it also happening in the log file. Could it be something to do with
the begin and transaction calls that surrounding doSave and
saveEmbeddedForms? I me
, foreignReference: id }
On Mar 16, 4:48 pm, lionslair wrote:
> Can you show me your database schema. If it works on one I don't know
> why it doesn't work on the other.
>
> On Mar 16, 3:52 pm, maestro wrote:
>
> > Am stumped by the same problem. I have a form that
mechanism in
> order to let it do that save for you as well as return the ID.
>
> On Sun, Mar 15, 2009 at 7:42 PM, maestro wrote:
>
> > Hello gentlemen,
>
> > I have a propel form class in which i override the save() function. Am
> > trying to save the main form objec
Am stumped by the same problem. I have a form that corresponds to the
main db object, and in it i have a bunch of embedded forms with
related objects. I need the ID generated for the main object to pass
to the related objects. The main object is being saved fine (I see it
in the DB), but when i t
Hello gentlemen,
I have a propel form class in which i override the save() function. Am
trying to save the main form object and some related objects. But when
i try to use the id of the just-added main object i find it empty. It
says in the docs. that once a propel object is saved the id should g
I usually use symfony propel:data-dump > fixture.yml. Then edit the
file if i have to.
On Mar 14, 2:59 am, Java Guy wrote:
> Is there a task or method anyone knows of to generate a fixture from a
> plugin?
>
> I've got some initial data I've put into my database using a fixture?
> But some of it
x27;update').
(!$form->getObject()->isNew() ? '?
id='.$form->getObject()->getId() : ''),
'method' => 'post'))
?>
And everything seems to work for now.
cheers,
On Mar 9, 5:17 pm, maestro wrot
Greetings all,
I'd appreciate some help on the following. I have a problem using
sfWidgetFormSelectDoubleList from the sfFormExtraPlugin plugin on a
form that uses jq_submit_to_remote. sfWidgetFormSelectDoubleList uses
a javascript, that hooks on the submit event, that select the items in
the "as
11 matches
Mail list logo