It may well be a bug in the generator: consider writing a test for it.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 21 October 2014 15:10, Sandro Cândido <[email protected]>
wrote:

> Hi all
>
> *Does anyone have a solution or answer to the case?*
>
>
> Em sexta-feira, 17 de outubro de 2014 10h21min34s UTC-3, Sandro Cândido
> escreveu:
>
>> Hi all
>>
>> Problem custom name sequeceGenerator YAML why not create the custom name
>> you want. Being created the default postgres, where is the problem?
>>
>> Message:
>>   type: entity
>>   id:
>>     id:
>>       type: integer
>>       generator:
>>         strategy: SEQUENCE
>>       sequenceGenerator:
>>         sequenceName: *message_sq*
>>         allocationSize: 100
>>         initialValue: 1
>>
>>
>> The entity is created like this:
>>
>> namespace usuario\models\entities;
>>
>> use Doctrine\ORM\Mapping as ORM;
>>
>> /**
>>  * Message
>>  *
>>  * @ORM\Table(name="message")
>>  * @ORM\Entity
>>  * @ORM\HasLifecycleCallbacks
>>  */
>> class Message
>> {
>>     /**
>>      * @var integer
>>      *
>>      * @ORM\Column(name="id", type="integer")
>>      * @ORM\Id
>>      * @ORM\GeneratedValue(strategy="SEQUENCE")
>>      * @ORM\SequenceGenerator(sequenceName="*message_id_seq*",
>> allocationSize=1, initialValue=1)
>>      */
>>
>> Should be created as specify:
>>
>> /**
>>  * Message
>>  *
>>  * @ORM\Table(name="message")
>>  * @ORM\Entity
>>  * @ORM\HasLifecycleCallbacks
>>  */
>> class Message
>> {
>>     /**
>>      * @var integer
>>      *
>>      * @ORM\Column(name="id", type="integer")
>>      * @ORM\Id
>>      * @ORM\GeneratedValue(strategy="SEQUENCE")
>>      * @ORM\SequenceGenerator(sequenceName="*message_sq*",
>> allocationSize=1, initialValue=1)
>>      */
>>
>  --
> 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.
>

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