Hi, I found the main issue by debugging the form generator. While moving my
models to the plugin I did change the name of the class
('Brand->PluginBrand') but did not declare the model classes as abstract.
This caused the form generator to treat both 'Brand' and 'PluginBrand' as
being both different models and generating multiple forms.You just have to know it :-) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Kucharski Sent: donderdag 5 augustus 2010 16:05 To: [email protected] Subject: Re: [symfony-users] Re: issues after moving form code to a plugin The Brand is defined in the plugin's schema.yml as follow. Nothing fancy at all. PluginBrandForm extends BaseBrandForm. Brand: columns: id: type: integer(4) primary: true notnull: true autoincrement: true name: type: string(150) url: type: string(100) external_reference: type: string(100) display_in_overview: type: boolean text: type: clob(65535) deleted_by: type: integer(4) relations: BrandMediaItems: class: BrandMediaItem local: id foreign: brand_id type: many actAs: CustomTimestampable: I18n: fields: [text] Archiveable: Publishable: Siteable: SoftDelete: > What's the underlying inheritance structure? Is the BrandForm model > represented by a Doctrine behavior plugin? The schema would be useful. > > Kind regards, > Johannes > > On 5 Aug., 09:38, "Daniel Kucharski" <[email protected]> wrote: >> Hi, >> >> Thanks for taking time to look into the issue. I tried what you did and >> moved the plugin out of the project, rebuild the doctrine classes with a >> dummy model and moved the plugin back in. However I am still facing the >> same issue. Any other clues? >> >> I am using Symfony 1.4.6 by the way. >> >> > Sorry, you're right the Plugin* class should be generated inside the >> > plugin's lib/ folder, not in the project's lib/ folder. Hmm, did you >> try >> > moving everything concerning your plugin out of the project, rebuild, >> then >> > move it back and rebuild again. I've never had this happening and I've >> > written a lot of Doctrine plugins. :) >> >> > Sent from my iPhone >> >> > On Aug 4, 2010, at 11:45 PM, "Daniel Kucharski" <[email protected]> >> > wrote: >> >> >> In, >> >> >> In the progress of moving some of my doctrine / symphony 1.4 based >> >> project to a plugin I am facing problems generating form classess >> >> located in the new plugin. >> >> >> Beneath an excerpt of generated classes in this folder: >> >> >> /lib/forms/base/PluginBrandForm.class.php >> >> >> /lib/forms/doctrine/base/BasePluginBrandForm.class.php >> >> >> /lib/forms/sfXeriasPlugin/BrandForm.class.php >> >> >> /lib/forms/sfXeriasPlugin/BaseBrandForm.class.php >> >> >> I don t understand why /lib/forms/base/PluginBrandForm.class.php was >> >> generated and why /lib/forms/sfXeriasPlugin/BaseBrandForm.class.php >> >> extends class PluginBrandForm >> >> >> I already have rebuild the whole project and of course cleared the >> >> cache. Anyone thoughts how to resolve this issue? >> >> >> Additional info: the project itself has no forms anymore, everything >> has >> >> been moved to the plugin. >> >> >> Kind regards, >> >> >> Daniel >> >> >> -- >> >> If you want to report a vulnerability issue on symfony, please send >> it >> >> to security at symfony-project.com >> >> >> 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 >> >> > -- >> > If you want to report a vulnerability issue on symfony, please send it >> to >> > security at symfony-project.com >> >> > 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 >> >> > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > 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 > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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
