Ticket #584 (closed Feature Request: fixed)

Opened 7 months ago

Last modified 5 months ago

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

Changed 7 months ago by Shadowhand

  • description modified (diff)

Changed 7 months ago by Shadowhand

  • component changed from Core to Libraries:ORM
  • milestone changed from 2.1.2 to 2.2

Changed 7 months ago by Shadowhand

  • description modified (diff)

Changed 5 months ago by Shadowhand

  • status changed from new to assigned

Changed 5 months ago by Shadowhand

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r3021.

Note: See TracTickets for help on using tickets.