Bug Report #1253
ORM with() and $load_with has errors if you use table prefixes
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | Libraries:ORM | |||
| Target version: | 2.3.3 | |||
| Resolution: | invalid | Points: |
Description
See my comments no 6 and 7 in the forum:
http://forum.kohanaphp.com/comments.php?DiscussionID=1459
Basically if you use table prefixes on your site some of the queries generated by the with() function have errors in the table names (which aren't apparent if you don't use prefixes)
I have made several changes, detailed in the forum thread, which seem to have fixed it for me. I have attached my modified version of ORM.php
History
Updated by Isaiah DeRose-Wilson almost 3 years ago
blueskiwi, it's much easier to test your suggested changes if you submit a patch instead of the whole file. See the ticket submission guidelines for details on creating a patch.
Updated by blueskiwi - almost 3 years ago
I just checked out the source from svn and the version of ORM.php in the trunk is quite different from the one in the zip I downloaded from the homepage a couple of weeks ago.
It doesn't seem to have the problem so I guess there's no need to worry about this bug.
Updated by John Heathco over 2 years ago
- Status changed from New to Closed
- Resolution set to invalid