Development

#3543 (propel:build-forms and behaviors, with peerclass and foreign keys)

You must first sign up to be able to contribute.

Ticket #3543 (closed defect: duplicate)

Opened 7 months ago

Last modified 7 months ago

propel:build-forms and behaviors, with peerclass and foreign keys

Reported by: sanubrio Assigned to: fabien
Priority: minor Milestone:
Component: tasks Version: 1.1.0 DEV
Keywords: Cc:
Qualification: Unreviewed

Description

When you have a foreign key what it have a behavior, sf throw a exception that behavior no exists.

With the same path what http://trac.symfony-project.com/ticket/3476 it work good. In line 347 add:

try {

// trigger the include_once of any behaviors now, and catch the // exception that is thrown due to no plugin behaviors having been // registered class_exists($this->getForeignTable($column)->getPhpName().'Peer');

} catch (sfConfigurationException $e) { }

Change History

05/14/08 20:14:49 changed by fabien

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

As you can see in the ticket you reference, this has already been fixed.

05/14/08 23:45:16 changed by sanubrio

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

Try build forms with behavior declared in foreign class, for instance:

Article:

columns:

id: title: varchar(255)

behaviors:

  • paranoid

Comment:

columns:

id: article_id: comment: longvarchar

The peer class have too the include of the behavior, and throw the exception too.

05/15/08 00:38:51 changed by Kris.Wallsmith

I was able to reproduce this. I'll work on a patch, since the one applied in r8896 was mine as well.

05/15/08 01:18:10 changed by Kris.Wallsmith

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

I've reopened and attached an updated patch to #3476.