In my model i have:
* @method Doctrine_Collection getComments() Returns the current record's "Comments" collection
Default if i generated admin then this isn’t showing in list.
If is in generator.yml :
config:
actions: ~
fields: ~
list:
display: [id, title, comments]
filter: ~
form: ~
edit: ~
new: ~
Then this show me
<pre> Doctrine_Collection data : Array( ) </pre>
instead of list of comments.
I know – i can get files from cache and showing this, but maybe this is possible only with generator.yml ?
For example if i have relation one to many then this showing me this name.
I dont want use cache for this!
thanks!
you can use a function for your problem.
For example, in my
generator.ymlnbQuestions is a function in
Object.class.phpThe admin generator will automatically call the “getYouField” Method in the object class. So you can describe a function which return a long string for you doctrine collection.