17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1298 Views |
-
Annoying database error

20 November 2008 at 4:07am
I have a custom join in my DataObject::get() call, but it keeps throwing an error, because I'm joining on "MyTable.ForeignID = ForeignTable.ID" and for some reason, the DataObject appends "_Live" to all the table names, so "MyTable" is not found, but "MyTable_Live" is. I don't want to have to hardcode "_Live" into my join, because then, of course, it will break on the staging site.
What gives?
-
Re: Annoying database error

11 December 2008 at 10:27am
I'm so sick of this error. Every time I use the DataObject I have to evaluate Versioned::current_stage() to see if I need the "_Live" table suffix. Has this been fixed in 2.3?
| 1298 Views | ||
|
Page:
1
|
Go to Top |

