Hi,

when I run orm:schema-tool:update it suggests this sql:

 CREATE UNIQUE INDEX UNIQ_88C1634F8D9F6D38 ON child (parent_id);

I run this sql on database and re-generate entities and it will be like:

$metadata->setPrimaryTable(array(
   'name' => 'child',
   'uniqueConstraints' =>
   array(
   'UNIQ_88C1634F8D9F6D38' =>
   array(
    'columns' =>
    array(
    0 => 'parent_id',
    ),
   ),
   ),

then again I try to orm:validate-schema and it gives the error that
UNIQ_88C1634F8D9F6D38 already exists on table child, and it forces me to
remove it again both from entity and from db! why? what wrong I am doing?

I probably have to add this child is unidirectional oneToOne to parent and
parent_id is both PK and FK to parent entity.

please advice.

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