[FLOW3-general] using ID in place of UUID
Federico Bernardin
typo3list at bernardin.it
Tue Dec 4 10:08:50 CET 2012
Hi,
yes it's shown when I do update:
Uncaught Exception
No identifier/primary key specified for Entity
'FirstTest\Domain\Model\Counter'. Every Entity must have an
identifier/primary key.
regards
Federico
Il giorno 04/dic/2012, alle ore 09:48, David Sporer <david.sporer at gmail.com> ha scritto:
> Have you updated your database (./flow doctrine:update) afterwards?
>
> -----Ursprüngliche Nachricht-----
> Von: flow3-general-bounces at lists.typo3.org
> [mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von Federico
> Bernardin
> Gesendet: Dienstag, 4. Dezember 2012 09:48
> An: General discussion about FLOW3
> Betreff: Re: [FLOW3-general] using ID in place of UUID
>
> Hi David,
> You're right but it doesn't work again:
> No identifier/primary key specified for Entity
>
> regards
> Federico
>
> Il giorno 04/dic/2012, alle ore 09:28, "David Sporer"
> <david.sporer at gmail.com> ha scritto:
>
>> Hi,
>>
>> öhm did you really use pipes ( | ) instead of backslashes?
>> Try to use @ORM\Id instead of @ORM|Id
>>
>> Regards
>> David
>>
>> -----Ursprüngliche Nachricht-----
>> Von: flow3-general-bounces at lists.typo3.org
>> [mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von Federico
>> Bernardin
>> Gesendet: Dienstag, 4. Dezember 2012 09:27
>> An: General discussion about FLOW3
>> Betreff: [FLOW3-general] using ID in place of UUID
>>
>> Hi,
>> I'm having fun with typo3 flow, and I'd like to create a specific
>> integer id in my entity. I have looked for documentation but it doesn't
> work.
>> I wrote this line:
>>
>> /**
>> * @var integer
>> * @ORM\Column(name="id", type="integer")
>> * @ORM|Id
>> * @ORM|GeneratedValue
>> */
>> private $id;
>>
>> Can you help me?
>>
>> regards
>> Federico
>>
>> _______________________________________________
>> FLOW3-general mailing list
>> FLOW3-general at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>>
>> _______________________________________________
>> FLOW3-general mailing list
>> FLOW3-general at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>
> _______________________________________________
> FLOW3-general mailing list
> FLOW3-general at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>
> _______________________________________________
> FLOW3-general mailing list
> FLOW3-general at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
More information about the FLOW3-general
mailing list