'Varchar(255)', ); private static $owned_by = array( 'Pages' ); /** * All pages with the same number. E.g. 'Page 1' owns 'Custom 1' * * @return DataList */ public function Pages() { $title = str_replace('Custom', 'Page', $this->Title); return TestPage::get()->filter('Title', $title); } }