zend framework - How generate new doctrine models without delete doctrine models classes with my code addition -


I build the app with the principle Zen.

The problem is that when I add a new table to the database and I should produce the theory model, because I add my code to the doceteen generated sections, I do not want to delete them.

  • Create theory model from the database
  • Delete the same new theory model Class with the old
  • I think my solution should be corrected Could.

    Only base classes are overwritten when they are already present.

    Do not modify them. Keep your custom code up to the base classes, so that your code remains unchanged on the next model generation.

    You can also see the service level as a method to isolate your model layer.

    And another advice: If you repeat the same thing, then it is best to automate it, e.g. use.


    Comments