Ticket #710 (closed Feature Request: wontfix)

Opened 4 months ago

Last modified 4 months ago

find_related with m2m - table naming convention

Reported by: tas Owned by: Shadowhand
Priority: minor Milestone:
Component: Libraries:ORM Version: 2.1 Release
Keywords: Cc:

Description

Would it be better if tables in m2m relation should be named in alphabetical order? Without it, it is not possible to do such thing: articles -> tags_articles <- tags

$tag->find_related_articles(); // will work
$article->find_related_tag(); // will NOT work.

When alphabetical order will be preserved and tables names will be sorted before related table name is build, it will work in every case.

Change History

Changed 4 months ago by Shadowhand

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

This has already been fixed in ORM2 (trunk ORM version, see r3021) and will not be backported to 2.1.3 because it's changes the way ORM works.

Changed 4 months ago by anonymous

  • milestone deleted

Milestone 2.1.3 deleted

Note: See TracTickets for help on using tickets.