Ticket #672 (closed Bug: fixed)

Opened 5 months ago

Last modified 4 months ago

a bug with convention naming of ORM.

Reported by: s_brightsky Owned by: Shadowhand
Priority: minor Milestone:
Component: Libraries:ORM Version: SVN HEAD
Keywords: convention name, ORM, has_many,find_related Cc: s_brightsky@…

Description

I found a bug with convention naming of ORM. In my case, I have tables on DB, set to 'users' and 'branches' ORM::factory('branch') works fine with singular name 'branch' however, when it comes to user $has_many=array('branches') I can't find relation between two tables but If I set to 'branchs' (s, not es)for example $has_many=array('branchs'), it's working fine. In addition to that, I got an error I can use find_related_branches() saying, can't find Branche_Model extends ORM

Change History

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
  • milestone changed from 2.2 to 2.1.3

Fixed in r2971, merged in r2972.

Changed 4 months ago by anonymous

  • milestone deleted

Milestone 2.1.3 deleted

Note: See TracTickets for help on using tickets.