Ticket #584 (closed Feature Request: fixed)
ORM - extended (descriptive) foreign key conventions
| Reported by: | Webthink | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.2 |
| Component: | Libraries:ORM | Version: | SVN HEAD |
| Keywords: | Cc: |
Description (last modified by Shadowhand) (diff)
as discussed here: http://forum.kohanaphp.com/comments.php?DiscussionID=403&page=1#Item_0
Require the ability to use foreign keys with meaningful names following the convention; descriptors_table_id. This will allow more than one foreign key to the same table. This is also (backwards) compatible with the current table_id convention.
The patch requires a fairly simple change to the __set method in ORM.php . The modified function can be seen here: http://kohana.pastebin.com/f4b572e8e
Change History
Note: See
TracTickets for help on using
tickets.
