[FLOW3-general] using ID in place of UUID

David Sporer david.sporer at gmail.com
Tue Dec 4 11:04:45 CET 2012


Hi Federico,

there are tons of results for this error on Google:
http://lmgtfy.com/?q=flow3+Every+Entity+must+have+an+identifier%2Fprimary+ke
y.
I had this error some time ago too but I can't remember how I solved it.
Perhaps if it's just a test project you can drop the table and recreate it
(not a nice solution but could work also).

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 11:00
An: General discussion about FLOW3
Betreff: Re: [FLOW3-general] using ID in place of UUID

Hi David,I have already done, it doesn't work, same error.

Federico

Il giorno 04/dic/2012, alle ore 10:25, "David Sporer"
<david.sporer at gmail.com> ha scritto:

> Hi Federico,
> 
> That means that no update has been executed.
> http://flow.typo3.org/documentation/guide/partiii/persistence.html#ann
> otatio ns-for-the-generic-persistence might help you
> 
> Try to add @FLOW\Identity to your property.
> 
> 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 10:09
> An: General discussion about FLOW3
> Betreff: Re: [FLOW3-general] using ID in place of UUID
> 
> 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
> 
> _______________________________________________
> 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