[Solved] Error "column not found" when creating index on camel-case fieldnames using Doctrine

0 votes
asked Apr 19, 2017 in Solved by HKandulla (140 points)
recategorized Jul 7, 2017 by ludek.vodicka

We use camel-case properties in Skipper. Doctrine (current version) creates per default underscore column names when properties are defined in came-case und no @ORM\Column(name="...") is defined.
When indices are defined in Skipper, Skipper uses the fieldname (camel-case) for columns-names which results in an "column not found" error when indices are created.

1 Answer

+1 vote
answered Apr 19, 2017 by ludek.vodicka Skipper developer (140,450 points)

This is not a bug. You have wrongly configured Skipper or Doctrine2

Depending on what you need you have to configure both (Doctrine2 and Skipper) to use the same case formatting.

In case that you configured Dcotrine to use underline you need to configure also Skipper module to export names in underline format.

enter image description here

commented Jul 7, 2017 by HKandulla (140 points)

Great, thanks!

...