DDC-470: Missing method addColumn #585

Closed
opened 2026-01-22 12:43:26 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 25, 2010).

Jira issue originally created by user drak:

I was following the examples in http://www.doctrine-project.org/documentation/manual/2_0/en/dbal#database-access-layer-introduction:schema-representation and it appears that the method addColumn referred to in \Doctrine\DBAL\Schema\Table is missing. I don't know if this is intentional but there doesnt appear to be a public method to allow us to add a column.

Originally created by @doctrinebot on GitHub (Mar 25, 2010). Jira issue originally created by user drak: I was following the examples in http://www.doctrine-project.org/documentation/manual/2_0/en/dbal#database-access-layer-introduction:schema-representation and it appears that the method addColumn referred to in \Doctrine\DBAL\Schema\Table is missing. I don't know if this is intentional but there doesnt appear to be a public method to allow us to add a column.
admin added the Bug label 2026-01-22 12:43:26 +01:00
admin closed this issue 2026-01-22 12:43:27 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 25, 2010):

Comment created by drak:

On further investigation, maybe it's just a documentation issue as the createColumn method looks like it might be the same thing? Certainly replacing addColumn() with createColumn() works.

@doctrinebot commented on GitHub (Mar 25, 2010): Comment created by drak: On further investigation, maybe it's just a documentation issue as the createColumn method looks like it might be the same thing? Certainly replacing addColumn() with createColumn() works.
Author
Owner

@doctrinebot commented on GitHub (Mar 25, 2010):

Comment created by @beberlei:

The method was renamed afte rthee release of alpha 4 to be more consistent with the other methods, which are add*().

@doctrinebot commented on GitHub (Mar 25, 2010): Comment created by @beberlei: The method was renamed afte rthee release of alpha 4 to be more consistent with the other methods, which are add*().
Author
Owner

@doctrinebot commented on GitHub (Mar 25, 2010):

Issue was closed with resolution "Duplicate"

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

No dependencies set.

Reference: doctrine/archived-orm#585