Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8067247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:13:43+00:00 2026-06-05T12:13:43+00:00

In my model i have: * @method Doctrine_Collection getComments() Returns the current record’s Comments

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:13:45+00:00Added an answer on June 5, 2026 at 12:13 pm

    you can use a function for your problem.

    For example, in my generator.yml

      list:    
        display: [id, description, public, nbQuestions]
    

    nbQuestions is a function in Object.class.php

    public function getNbQuestions() {
        return $this->getQuestion()->count();
    }
    

    The 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a method in a reservation model called add_equip. This method does
In my C# program, I have got method code: Object model; int score; for()
I am newbie at Django. I have model with a custom method. In view
I have a simple method running in a private method in my model :
I have an Model Class. When I call a the method setter, I set
I have a model with ContentType field in it. In any model method I
I have a model that uses a acts_as_nested_set fork, and I've added a method
I have a memoized Django model manager method as follows: class GroupManager(models.Manager): def get_for_user(self,
I have these two lines in my GET action method: var model = new
I have a controller action that calls a model method which generates a serialized

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.