【发布时间】:2012-06-11 10:21:31
【问题描述】:
在我的模型中,我有:
* @method Doctrine_Collection getComments() Returns the current record's "Comments" collection
默认如果我生成了管理员,那么这不会显示在列表中。 如果在 generator.yml 中:
config:
actions: ~
fields: ~
list:
display: [id, title, comments]
filter: ~
form: ~
edit: ~
new: ~
那就给我看看
<pre> Doctrine_Collection data : Array( ) </pre>
而不是 cmets 列表。
我知道 - 我可以从缓存中获取文件并显示这一点,但也许只有 generator.yml 才有可能? 例如,如果我有一对多的关系,那么这会显示我这个名字。
我不想为此使用缓存! 谢谢!
【问题讨论】:
标签: php symfony1 symfony-1.4