silverstripe-frameworktest/code/FrameworkTestSiteTreeExtension.php

12 lines
320 B
PHP
Raw Normal View History

2012-03-08 10:36:12 +01:00
<?php
class FrameworkTestSiteTreeExtension extends DataExtension {
2012-04-12 05:04:39 +02:00
function extraStatics($class = null, $extension = null) {
2012-03-08 10:36:12 +01:00
return array(
'has_one' => array('RelationFieldsTestPage' => 'RelationFieldsTestPage'),
'belongs_many_many' => array('RelationFieldsTestPages' => 'RelationFieldsTestPage'),
);
}
2012-04-12 05:04:39 +02:00
}