Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sb-relaxt-at/8da1f35f790a25ce4a46993867e947ab to your computer and use it in GitHub Desktop.
Save sb-relaxt-at/8da1f35f790a25ce4a46993867e947ab to your computer and use it in GitHub Desktop.
<?php
namespace App\Entity;
use SilverStripe\ORM\DataObject;
class FooEntity extends DataObject {
private static $db = [
'FooField' => 'Int',
];
private static $many_many = [
'Bars' => BarEntity::class,
];
private static $summary_fields = [
'FooField',
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment