| 1 | <?php | ||
| 3 | class AttachedGalleryExtension extends DataExtension | ||
|  | |||
| 4 | { | ||
| 5 | private static $has_one = array( | ||
| 6 | 'AttachedGallery' => 'GalleryPage', | ||
| 7 | ); | ||
| 8 | |||
| 9 | 1 | public function updateCMSFields(FieldList $fields) | |
| 19 | |||
| 20 | /* | ||
| 21 | Return a list of the attached gallery and any child galleries | ||
| 22 | */ | ||
| 23 | 1 | public function InlineGalleries() | |
| 40 | } | ||
| 41 | 
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.