我只能在调用 Doctrine::generateModelsFromYaml() 时生成基类吗?

发布于 2024-09-15 22:55:31 字数 253 浏览 4 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鹿港小镇 2024-09-22 22:55:31

我发现默认情况下只编辑基类。伟大的!

I found that only the base classes are edited by default. Great!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文