mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-486: metaPrimaryKeys() for Schema Manager #606
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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);
@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 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 (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:
Ok, the API for this is for example:
Closed.
@doctrinebot commented on GitHub (Apr 1, 2010):
Issue was closed with resolution "Won't Fix"