how to generate-entities or convert-mapping make the fields not named as lowercase #5304

Closed
opened 2026-01-22 15:03:59 +01:00 by admin · 2 comments
Owner

Originally created by @akmumu on GitHub (Oct 26, 2016).

Originally assigned to: @Ocramius on GitHub.

in my databases,that,s all the camlcase fields
i need is not

class Order
{
    /**
     * @var integer
     *
     * @ORM\Column(name="orderId", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $orderid;

and need private $orderid is $orderId
well, i hope @ORM\Table(name="order", will be come
image

because order in mysql is a ...

thanks a lot

Originally created by @akmumu on GitHub (Oct 26, 2016). Originally assigned to: @Ocramius on GitHub. in my databases,that,s all the camlcase fields i need is not ``` class Order { /** * @var integer * * @ORM\Column(name="orderId", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ private $orderid; ``` and need `private $orderid` is `$orderId` well, i hope `@ORM\Table(name="order",` will be come ![image](https://cloud.githubusercontent.com/assets/3242526/19716952/e5a8a260-9b90-11e6-89b5-d5b85efe9de0.png) because order in mysql is a ... thanks a lot
admin closed this issue 2026-01-22 15:03:59 +01:00
Author
Owner

@Ocramius commented on GitHub (Oct 26, 2016):

The generated entities are just some sort of point where to start from. The generator is only going to get you this far.

If you need to customize the entities after code generation, you'll have to do so manually.

@Ocramius commented on GitHub (Oct 26, 2016): The generated entities are just some sort of point where to start from. The generator is only going to get you this far. If you need to customize the entities after code generation, you'll have to do so manually.
Author
Owner

@akmumu commented on GitHub (Oct 26, 2016):

@Ocramius thanks

@akmumu commented on GitHub (Oct 26, 2016): @Ocramius thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5304