Hi,
I'm feeling really stupid...
I have 2 unrelated dataobjects (DO1 and DO2).
DO1 needs some data from DO2 to perform the right behaviour (everything on the model-side, so no templating).
What I have right now (in DO1) is:
function Address(){
$a = DataObject::get('DO2', "ID=1");
if($a){
$c = $a->City;
return $c;
}
}
I've been checking too many times for typos so I suspect there's something else I'm doing wrong.
But what...???