Symfony主义骨架文件 [英] Symfony Doctrine skeleton files

查看:53
本文介绍了Symfony主义骨架文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Symfony 1.4与Doctrine 1.2插件一起使用。

I'm using Symfony 1.4 with the Doctrine 1.2 plugin.

我想向Doctrine自动生成的模型文件中添加一些功能(* Base.class .php)。
这些文件通常是使用CLI中的 ./symfony doctrine:build-model命令生成的。我知道Symfony对于从CLI生成的每个文件都有一个框架系统,但是我绝对不知道如何修改特定的Doctrine框架文件。

I would like to add some function to the Doctrine auto-generated models files (*Base.class.php). Thoses file are normally generated using "./symfony doctrine:build-model" command from the CLI. I know Symfony have a system of skeleton for every file generated from the CLI but I habe absolutely no idea how to modify specific Doctrine skeletons files.

我看过文档,但没有发现任何提示。

I've looked a the documentation but didn't find any hints. Is this even possible ?

推荐答案

在symfony中搜索自动生成者,我发现此文件:lib / plugins / sfDoctrinePlugin / lib / vendor / doctrine / Doctrine / Import / Builder.php,它似乎根本没有使用任何骨架系统...慰问...

Searching for 'auto-generated by' in symfony, I found this file : lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Import/Builder.php , which does not seem to use any skeleton system at all... condolences...

这篇关于Symfony主义骨架文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆