DDC-486: metaPrimaryKeys() for Schema Manager #606

Closed
opened 2026-01-22 12:44:13 +01:00 by admin · 5 comments
Owner

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

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user drak:

Would it be possible to add a method to the Schema Manager metaPrimaryKeys() which was available in Doctrine 1? It used to be available in MetaPrimaryKeys($tableName);

Originally created by @doctrinebot on GitHub (Mar 30, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user drak: Would it be possible to add a method to the Schema Manager metaPrimaryKeys() which was available in Doctrine 1? It used to be available in MetaPrimaryKeys($tableName);
admin added the New Feature label 2026-01-22 12:44:13 +01:00
admin closed this issue 2026-01-22 12:44:14 +01:00
Author
Owner

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

Comment created by @beberlei:

Hm, i searched the 1.2 code basis now and can't find this method, what does it do?

@doctrinebot commented on GitHub (Mar 31, 2010): Comment created by @beberlei: Hm, i searched the 1.2 code basis now and can't find this method, what does it do?
Author
Owner

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

Comment created by drak:

I do appologise - it appears I made a mistake, it's not actually present in Doctrine 1, but I have a call using it (mistake from a refactor from ADODB).

You guys already added the following to DBAL

listTableColumns($tableName)
listTableDetails($tableName)
listTableForeignKeys($tableName)
listTableIndexes($tableName)

If you consider it useful, listTablePrimaryKeys($tableName) would return the primary key of a table.

@doctrinebot commented on GitHub (Mar 31, 2010): Comment created by drak: I do appologise - it appears I made a mistake, it's not actually present in Doctrine 1, but I have a call using it (mistake from a refactor from ADODB). You guys already added the following to DBAL listTableColumns($tableName) listTableDetails($tableName) listTableForeignKeys($tableName) listTableIndexes($tableName) If you consider it useful, listTablePrimaryKeys($tableName) would return the primary key of a table.
Author
Owner

@doctrinebot commented on GitHub (Apr 1, 2010):

Comment created by @beberlei:

listTableIndexes($tableName) already does that, for convenience you can use listTableDetails($tableName), which returns an instance of "Table" which you can then use "getPrimaryKey" on i believe.

@doctrinebot commented on GitHub (Apr 1, 2010): Comment created by @beberlei: listTableIndexes($tableName) already does that, for convenience you can use listTableDetails($tableName), which returns an instance of "Table" which you can then use "getPrimaryKey" on i believe.
Author
Owner

@doctrinebot commented on GitHub (Apr 1, 2010):

Comment created by @beberlei:

Ok, the API for this is for example:

$sm->listTableDetails($tableName)->getPrimaryKey()->getColumns();

Closed.

@doctrinebot commented on GitHub (Apr 1, 2010): Comment created by @beberlei: Ok, the API for this is for example: ``` $sm->listTableDetails($tableName)->getPrimaryKey()->getColumns(); ``` Closed.
Author
Owner

@doctrinebot commented on GitHub (Apr 1, 2010):

Issue was closed with resolution "Won't Fix"

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

No dependencies set.

Reference: doctrine/archived-orm#606