Webonaute / DoctrineFixturesGeneratorBundle

Generate Fixture from your existing data in your database. You can specify the Entity name and the IDs you want to import in your fixture.
63 stars 47 forks source link

Exclude columns from fixture #9

Closed acpbytron closed 7 years ago

acpbytron commented 9 years ago

Possible enhancement ... add a command line option to ignore columns/member variables from the entity if there are columns that need to be left null in the new fixture.

Webonaute commented 7 years ago

Nice idea, maybe for later,

by the way, since v1.3.0, the fixture generator will not add line for columns that are equal to the default value in entity. It will reduce significantly the number of line of code some big table.

Webonaute commented 7 years ago

You can ignore already column data using Annotation. look at the documentation.