Hi, all!

I have flowing schema.yml:
Category:
  tableName: categories
  columns:
    id:
      type: integer(4)
      notnull: 'true'
      primary: 'true'
      autoincrement: 'true'
    name: string
-----
Articles:
  tableName: articles
  actAs:
    Timestampable:
      created:
        name: created_at
        type: timestamp
        expression: 'NOW()'
      updated:
        name: updated_at
        type: timestamp
        expression: 'NOW()'
  columns:
    id:
      type: integer
      notnull: 'true'
      primary: 'true'
      autoincrement: 'true'
    category_id:
      type: integer(4)
    title:
      type: string
      notnull: 'true'
    content:
      type: string
      notnull: 'true'
  relations:
    Category:
      class: Category
      foreign: id
      local: category_id
------------
I use doctrine:generate-admin for both.
My backend/modules/articles/config/generator.yml:
      list:
        display:        [category_id, =title, content, author_id,
created_at, updated_at]

How can I diplay `category.name`  instead of category_id field. Or how
to get category.name by local category_id.

Thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to