我只能在调用 Doctrine::generateModelsFromYaml() 时生成基类吗?
我正在使用 Doctrine::generateModelsFromYaml()。它创建一个充满基类的目录。凉爽的。我猜测分离基类的目的是只存储列定义和关系(换句话说,只存储可以从数据库中看到的东西。另一方面,扩展模型将通过行为等进行编辑..
那么,当再次调用 Doctrine::generateModelsFromYaml 时,如何仅更新基类而不更新扩展类?
编辑:如果我关于基类目的的理论(“我猜分离基类的目的是仅存储列定义和关系”)是错误的,请告诉我。
I am using Doctrine::generateModelsFromYaml(). It creates a directory filled with base classes. Cool. I'm guessing the point of separating the base classes is to store only column definitions and relationships (in other words, only things that can be gleamed from the DB. The extension models, on the other hand, will be edited with behaviors, etc..
So how do I only update the base classes and not the extended classes when calling Doctrine::generateModelsFromYaml again?
EDIT: If my theory about the purpose of base classes ("I'm guessing the point of separating the base classes is to store only column definitions and relationships") is wrong, please let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现默认情况下只编辑基类。伟大的!
I found that only the base classes are edited by default. Great!