Hello,

I have this in a table : 
Sdv\MonitoringBundle\Entity\User:
  type: entity
  table: user
  fields:
    idUser:
      id: true
      type: bigint
      column: id_user
      generator:
        strategy: IDENTITY
[...]
  oneToMany:
    onglets:
      targetEntity: OngletUser
      mappedBy: id_user
      orderBy: [ordre asc]


The destination table is : 
Sdv\MonitoringBundle\Entity\
OngletUser:
  type: entity
  table: onglet_user
  fields:
    id_user:
      id: true
      type: bigint
    id_onglet:
      type: bigint
      id: true
    ordre:
      type: integer
      default: 0

But in the origin table, when I want to do a $user->getOnglets(), I get this 
errors : 


*Notice*: Undefined index: id_user in *
/data/www/monitoring/src/SymfonyB1/vendor/doctrine/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php
* on line *1198*
*Warning*: Invalid argument supplied for foreach() in *
/data/www/monitoring/src/SymfonyB1/vendor/doctrine/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php
* on line *1205*
*Notice*: Undefined offset: 0 in *
/data/www/monitoring/src/SymfonyB1/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadata.php
* on line *220*

Any ideas ?
Please, help me.

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