Home Documentation Download Pricing Buy Now

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

0 votes

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!

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

1 Answer

0 votes
 
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.

answered Apr 10, 2015 by ludek.vodicka Skipper developer (140,530 points)
selected Apr 10, 2015 by chateaux

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

...