Ticket #672 (closed Bug: fixed)
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
Note: See
TracTickets for help on using
tickets.
