A sequence is T-SQL (Microsoft) specific. If you want to use that in a 
query, you should use a native SQL query. To me it is not clear what output 
it would generate. I'd just construct such an entity with a PHP loop (for 
instance in a setter). Then it is also database-independent. Is there any 
particular reason why you want to have generated such a sequence by the 
database?

On Tuesday, 11 February 2014 17:32:49 UTC+1, David Marín Carreño wrote:
>
> I'd like to create an independent sequence, not linked with any of my 
> Entities. Well, really it would be linked with many Entities that would use 
> it for generating correlative numbers...
>
> Does Doctrine ORM have support for defining any Entity or structure that 
> generates such a sequence?
> It should execute something like this:
>
> CREATE SEQUENCE my_sequence_seq
>   INCREMENT 1
>   MINVALUE 1
>   MAXVALUE 99999
>   START 1
>   CACHE 1;
> Thanks a lot.
> --
> David Marín Carreño <[email protected] <javascript:>>
>

-- 
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/groups/opt_out.

Reply via email to