Hello.

I'm working on a legacy application that doesn't use any ORM/DBAL.
I've a table where the PK is a string (an alphanumeric code). Many other 
tables, refer to this table using this string. 

Here a simplified version: 
https://gist.github.com/hpatoio/d98fe1f6d456544b5795

I've mapped this table to a Doctrine entity. Everything works when I have 
to read data, but when I try to persist a new element doctrine keeps 
telling me that I didn't set the column `code` even if I call 
$user->setCode('codeForNewUser')

I guess this is because `code` is set as entity's Id and it's used in the 
relation. 

Is there a way to tell doctrine to not modify the value of `code`  and just 
save the entity ? 

--
Simone

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