symfony1 - In symfony 1.4, is there a way to override or extend parts of a generated schema.yml? -
we using symfony 1.4 doctrine. because of nature of our development, 3 of working on project need regenerate our schema, model, forms , filters every morning.
i want keep table set "versionable" in schema. if re-generate schema php symfony doctrine:build-schema, resulting file not have actas: in anymore, , need copy , paste before re-generating model, forms , filters.
is there way extend schema.yml can avoid copying , pasting snippet of code every morning keep configuration constant? if so, how far need go in extending file? example, can include actas: individual table, or need define table in entirety?
when regenerate model, regenerate base* files. extending setup() method contained in base* classes in * classes (you can find them 1 directory up) might solution add versionnable behavior permanently. think handy import modified schema.yml instead of modified tables, unless don't want loose data. can't apply version of schema.yml development machines using branch?
Comments
Post a Comment