[Flow] Doctrine: Identity properties recreates indexes mutliple times
Zedd
zedd at akii.de
Tue Oct 7 12:45:08 CEST 2014
Just use the correct Doctrine annotation for generated values.
* @Flow\Identity
* @ORM\Id
* @ORM\GeneratedValue
Greetings
Philipp
On 07 Oct 2014, at 12:03, Falk <vixe4all at freenet.de> wrote:
> Hello guys,
>
> I've models with additonal identity properties. Every doctrine update/migrate recreate all indexes for the relevant table cols in the DB without existence check. This results in multiple indexes for the same table column.
>
> Property sample:
> ----------------------------------------------
> /**
> * @var integer
> * @Flow\Identity
> * @ORM\Column(columnDefinition="INT(11) NOT NULL AUTO_INCREMENT UNIQUE") */
> protected $id;
> ----------------------------------------------
>
> Is this a bug?
>
> Best Falk
>
> TYPO3 Flow 2.2.2
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list