You can use the CLI tool: $ doctrine orm:schema-tool:update --dump-sql
Or (but don't use this in production): $ doctrine orm:schema-tool:update --force Or you can use something like Doctrine Migrations [1]. [1]: http://docs.doctrine-project.org/projects/doctrine-migrations/en/latest/reference/introduction.html -- Jasper N. Brouwer (@jaspernbrouwer) On 19 June 2014 at 12:54:30, Megha Agarwal ([email protected]) wrote: > Hi all, > > My db has already the following columns in a particular table. I need to > add some more custom columns in this. > Can anyone suggests how to auto-generate the custom fields in the schema > file. > > OhrmJobCandidate: > connection: doctrine > tableName: ohrm_job_candidate > columns: > id: > type: integer(4) > fixed: false > unsigned: false > primary: true > autoincrement: false > first_name: > type: string(30) > fixed: false > unsigned: false > primary: false > notnull: true > autoincrement: false > middle_name: > type: string(30) > fixed: false > unsigned: false > primary: false > notnull: false > autoincrement: false > > Advance thanks for any effective guidance. > > Regards, > Megha -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
