[FLOW3-general] Annotation syntax for table indexes

Thomas Mammitzsch thomas at visualworx.de
Tue Dec 11 11:13:51 CET 2012


After trying and looking up doctrine i got it working.

  * 
@ORM\Table(indexes={@ORM\Index(name="my_idx",columns={"col1","col2","coln"})})

On 11.12.2012 10:40, Thomas Mammitzsch wrote:
> ok, just took it from Regines example. New error is:
>
> Couldn't find constant ORM\index
>
> regards, Thomas
>
> On 11.12.2012 09:34, Karsten Dambekalns wrote:
>> Hi.
>>
>> On 10.12.12 17:31, Thomas Mammitzsch wrote:
>>>   * @ORM\table(indexes={ORM\index(name="<ort>",columns={"<ort>"})})*
>> Table, not table. Mind the capitalization.
>>
>>
>> Regards,
>> Karsten
>



More information about the FLOW3-general mailing list