Ticket #776 (closed Feature Request: wontfix)

Opened 3 months ago

Last modified 2 months ago

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?

Change History

Changed 2 months ago by Shadowhand

  • status changed from new to closed
  • resolution set to wontfix

No, it would break the conventions. You can extend the ORM class itself if you want to use a different convention, or define it per-model.

Note: See TracTickets for help on using tickets.