Hi guys, im new with doctrine and try to use it in symfony.

First: sorry for my bad english.

Schema diagram DB <http://it.tinypic.com/r/2evt5rt/8>
in my database i have 5 tables (Utente - SedeProprietario - Sede - 
Proprietario - incassi)

I have problem in relation Utente => SedeProprietario => Sede => 
Proprietario when i import from db and autogenerate entity.

Doctrine only make 4 entity 

Here is code for entity.

ENTITY CODE <http://pastie.org/10005355>
http://pastie.org/10005355

i create user with FOSUSERBUNDLE and next print object UTENTE.

"utente" => Utente {#776 ▼ 
<http://localhost:3128/Uniko4/web/app_dev.php/incassi#sf-dump-851595185-ref2776>
    #id: 1
    -sedeProprietario: PersistentCollection {#802 ▼ 
<http://localhost:3128/Uniko4/web/app_dev.php/incassi#sf-dump-851595185-ref2802>
      -snapshot: []
      -owner: Utente {#776 
<http://localhost:3128/Uniko4/web/app_dev.php/incassi#sf-dump-851595185-ref2776>}
      -association: array:19 [ …19]
      -em: EntityManager {#95 …10}
      -backRefFieldName: "utente"
      -typeClass: ClassMetadata {#781 …}
      -isDirty: false
      -initialized: false
      -coll: ArrayCollection {#803 ▼
        -_elements: []
      }
    }
    #username: "admin"
    #usernameCanonical: "admin"


in db  in table:  utente_sede


# sede_proprietario_id, sede_codice, utente_id
'1',                                '001',                 '1'
'1',                                 '002',                 '1'

my doctrine call correct proprietario => sedi relation
but not utente => sede(proprietario)

I hope I was clear and sorry again for my bad English.

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to