hi everybody!
I have a strange behaviour in datamodel and property inheritance, here's what I am trying to do.
class BaseClass extends DataObject {
static $db = array(
'Point' => 'GeoPoint',
'Text' => 'Varchar'
);
}
class ChildClass extends BaseClass {
public function getCMSFields(){
print_r($this->Point); // empty
print_r($this->Text); // it's ok, I see this property
}
}
It is simplified example of what I am trying to do. This code always return empty object. I have this object entry in db with right Point data, but it always return me object with no coordinates or any data that exist in db. any ideas?