Development

#3526 ([PATCH]: sfDoctrinePlugin/FormGenerator: incorrect assignment of primary key in sfDoctrineFormGeneratedTemplate)

You must first sign up to be able to contribute.

Ticket #3526 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

[PATCH]: sfDoctrinePlugin/FormGenerator: incorrect assignment of primary key in sfDoctrineFormGeneratedTemplate

Reported by: thomas.s Assigned to: Jonathan.Wage
Priority: major Milestone:
Component: sfDoctrinePlugin Version: 1.1.0 RC1
Keywords: form generation doctrine Cc:
Qualification: Unreviewed

Description

The sfDoctrineFormGeneratedTemplate contains propel code (i guess) in the part where the save functions of the form are generated (see attached patch for my fix suggestion).

Attachments

DoctrineFormGeneratedTemplate_save.diff (1.4 kB) - added by thomas.s on 05/13/08 15:51:27.
Assign the primary key the doctrine way.

Change History

05/13/08 15:51:27 changed by thomas.s

  • attachment DoctrineFormGeneratedTemplate_save.diff added.

Assign the primary key the doctrine way.

05/14/08 03:54:57 changed by Jonathan.Wage

  • status changed from new to closed.
  • resolution set to fixed.

(In [8940]) fixes #3526

05/14/08 14:57:58 changed by thomas.s

  • status changed from closed to reopened.
  • resolution deleted.

you forgot the "=?" part of the where part:

->where('r.<?php echo $relation->getLocalFieldName() ?> = ?'

05/19/08 21:55:10 changed by Jonathan.Wage

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [9058]) fixes #3526 again. Sorry about that.