this mailinglist is about symfony development, not about doctrine user
questions. you should ask on one of the support channels of doctrine [1]


what you are looking for is id generators. a not very good example is
here [2] for all its worth.

that said, i have to add: be really careful about adding any kind of
semantic meaning to ids. unless you really need to, rather add a
separate field with metadata to your entity than use semantic ids.

cheers,david

[1] http://www.doctrine-project.org/community.html

[2]
http://ranskills.wordpress.com/2011/05/26/how-to-add-a-custom-id-generation-strategy-to-doctrine-2-1/

Am 07.09.2012 11:55, schrieb Saad Fikri:
> Hi all,
> 
> I want to create entity with doctrine 2 ; when i create it it generate
> automatiquely an Id, i want to change the name of Id to something else
> and work with it
> like an id.
> how can i do that ?
> 
> 
>  
> 
> -- 
> 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 developers" group.
> To post to this group, send email to symfony-devs@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-devs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en

-- 
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch

-- 
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 developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to