Ticket #776 (closed Feature Request: wontfix)
ORM: More configuration options
| Reported by: | Jeffrey04 | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Libraries:ORM | Version: | 2.2 Release |
| Keywords: | Cc: |
Description
I am quite happy with the ability to set primary_key in ORM. However, I am building a system that needs to work with existing drupal database which doesn't follow the preferred convention. (like you have a table named 'users', 'role', as well as 'users_roles'). I am sorry if I sound very annoying but I really like an ORM library in Codeigniter named IgnitedRecord? ( http://www.assembla.com/wiki/show/IgnitedRecord ). It allows the developer to define relationship in a very detailed way that includes foreign key name, table name, model name etc.
I have to override existing foreign_key() everytime I need to define relationship between two tables at the moment. Is that possible to have the ORM to allow custom foreign key config?
