| 1 | <?php |
||
| 5 | trait Ownable |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param string $relation |
||
| 9 | * |
||
| 10 | * @return $this |
||
| 11 | */ |
||
| 12 | 8 | public function ownedBy($relation) |
|
| 13 | { |
||
| 14 | 8 | $this->getAssociation()->mappedBy($relation); |
|
| 15 | |||
| 16 | 8 | return $this; |
|
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return \Doctrine\ORM\Mapping\Builder\AssociationBuilder |
||
| 21 | */ |
||
| 22 | abstract public function getAssociation(); |
||
| 23 | } |
||
| 24 |