I am seeing the same problem with running 'symfony propel:build-forms' Using the following sequence:
dropping all database tables deleting lib/model/* deleting data/sql/* symfony cc symfony propel-build-model symfony propel-build-sql symfony propel-insert-sql when I run symfony propel:build-forms propel generates forms for tables which do not exist in the new schema. Is there any other place where schema files are cached? I am at a complete loss as to where it is getting the old model. On Jul 29, 4:20 pm, mattyk <kesa...@gmail.com> wrote: > Problem solved... > > I needed to clear out the xml files in the data/sql directory. > > On Jul 29, 1:16 pm, mattyk <kesa...@gmail.com> wrote: > > > My schema in the simplest form: > > > propel: > > _attributes: { noXsd: false, defaultIdMethod: native, package: > > lib.model.show } > > > venue: > > id: > > name: { type: varchar(255), required: true, index: true } > > city: { type: varchar(255), required: true, index: true } > > state: { type: varchar(255), required: true, index: true } > > created_at: > > updated_at: > > > After hitting save I follow the following steps... > > 1.) drop / create database > > 2.) ./symfony cc > > 3.) rm -fdr lib/model/* > > 4.) ./symfony propel-build-model > > 5.) ./symfony propel-build-sql > > 6.) ./symfony propel-insert-sql > > > I then check my database an examine my database. Things seem way off. > > I used to have 5 tables defined in my .yml file but I have truncated > > this down to 1 table for testing purposes. 5 tables still get added to > > my database, the required fields are not set as required (added to > > latest version of yml), the indexes are missing (added to lastest > > version of yml), and both created_at and updated_at aren't being > > created (added to latest version of yml). > > > Is this schema being cached somewhere else that isn't cleaned up by ./ > > symfony cc? Why is my new schema.yml being ignored? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---