[Solved] How can I change the case of generated properties to CamelCase?

0 votes
asked Apr 10, 2015 in Solved by chateaux (550 points)
edited Oct 13, 2015 by ludek.vodicka

I would like my properties to be CamelCase rather than using an underscore stratergy. How can I set this?

i.e.

This is what is generated:

/**
 * @ORM\Column(type="float", nullable=false)
 */
private $sender_payment;

This is what I want:

/**
 * @ORM\Column(type="float", nullable=false)
 */
private $senderPayment; <--

Thanks!

1 Answer

0 votes
answered Apr 10, 2015 by ludek.vodicka Skipper developer (140,450 points)
selected Apr 10, 2015 by chateaux
 
Best answer

It depends how you enter it in Skipper.

If you want have your propeties camelCased, simply enter it as camel case ;-). There is no reason to keep different property names in Skipper and code, because in Skipper you're defining your model.

In case you have your properties underscored becasue of table names, simply use "table_name" property.

commented Apr 10, 2015 by chateaux (550 points)

Of course, I am still thinking from a WorkBench perspective. Thanks.

...