for the first issue this is my schema.yml

Client:
  actAs: { Timestampable: ~ }
  columns:
    name:                       { type: string(255), notnull: true }
    email:                      { type: string(255), notnull: true }
    phone_number:               { type: string(255), notnull: true }

Picture:
  actAs: { Timestampable: ~ }
  columns:
    client_id:             { type: integer, notnull: true }
    photo:            { type: string(255), notnull: true }
  relations:
    Client:    { onDelete: CASCADE, local: client_id, foreign: id,
foreignAlias: Pictures }

when i use somehting lile:

$client = $this->getRoute()->getObject();
$pictures = $client->Pictures[];

i get an error telling me that Pictures

"Unknown record property / related component "Pictures" on "Client" "

Any idea?

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