Does anyone know why, in the Page class using a custom getter like the following will get me a [notice]: undefined property: Page::$MyField):
static $db = array ('MyField' => 'Varchar(255)');
function getMyField() {
return $this->MyField;
}
While I can do so on existing SiteTree::$db fields without any problem?
function getContent() {
return $this->Content;
}
Must be something stupid I'm missing?