I am using symfony 1.4.12 with admin generator
and ahDoctrineEasyEmbeddedRelationsPlugin

with schema below:

Client:
  actAs:
    Timestampable:
    Sluggable:
      unique: true
      fields: [name]
      canUpdate: true
  tableName: Clients
  options:
    charset: utf8
  columns:
    id:
      primary: true
      type: integer(4)
      notnull: true
      autoincrement: true
    name:
      default: null
      type: clob(65535)

Person:
  actAs:
    Timestampable:
    Sluggable:
      unique: true
      fields: [name]
      canUpdate: true
  tableName: Persons
  columns:
    id:
      primary: true
      type: integer(4)
      notnull: true
      autoincrement: true
    name:
      type: string(255)
      notnull: true
    email:
      type: string(255)
    clients_id:
      type: integer(4)
      notnull: true
    is_published:
      default: 1
      type: boolean
      notnull: true
  indexes:
    fk_ClientsPersons_Clients1:
      fields: [clients_id]
  relations:
    client:
      class: Client
      foreignAlias: ClientsPersons
      local: clients_id
      foreign: id

I try to create new Client with embedded relation also new Person
i tried many options and result is always the same

new Client created but no new Person related record (sometimes new
Person but with clean record with defaults only

what am i doing wrong? or maybe ahDoctrineEasyEmbeddedRelationsPlugin
is outdated
not working anymore with newer symfony versions?

below simple form config:

$this->embedRelations(array(
        'ClientsPersons' => array(
          'considerNewFormEmptyFields' => array('clients_id'),
    )
      ));

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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