DDC-1378: Column alias has no effect #1726

Closed
opened 2026-01-22 13:23:26 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 15, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user olegk:

Well, docs say that I can use "column" parameter for diffrent column name in database?
http://www.doctrine-project.org/docs/orm/2.1/en/reference/basic-mapping.html#property-mapping

I'm using yaml but it has no effect

customers_id:
      type: integer
      column: ch*customers*id
      nullable: false

generated model

/****
     * @var integer $customers_id
     */
    private $customers_id;


public function setCustomersId($customersId)
    {
        $this->customers_id = $customersId;
    }

Expected result:

/****
     * @var integer $ch*customers*id
     */
    private $ch*customers*id;


public function setCustomersId($customersId)
    {
        $this->ch*customers*id = $customersId;
    }
Originally created by @doctrinebot on GitHub (Sep 15, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user olegk: Well, docs say that I can use "column" parameter for diffrent column name in database? http://www.doctrine-project.org/docs/orm/2.1/en/reference/basic-mapping.html#property-mapping I'm using yaml but it has no effect ``` customers_id: type: integer column: ch*customers*id nullable: false ``` generated model ``` /**** * @var integer $customers_id */ private $customers_id; public function setCustomersId($customersId) { $this->customers_id = $customersId; } ``` Expected result: ``` /**** * @var integer $ch*customers*id */ private $ch*customers*id; public function setCustomersId($customersId) { $this->ch*customers*id = $customersId; } ```
admin added the Bug label 2026-01-22 13:23:26 +01:00
admin closed this issue 2026-01-22 13:23:26 +01:00
Author
Owner

@doctrinebot commented on GitHub (Sep 17, 2011):

Comment created by olegk:

it must be invalid if alias kept in metadata(?).

@doctrinebot commented on GitHub (Sep 17, 2011): Comment created by olegk: it must be invalid if alias kept in metadata(?).
Author
Owner

@doctrinebot commented on GitHub (Sep 17, 2011):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Sep 17, 2011): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1726