Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public static function enable() |
||
21 | { |
||
22 | Field::macro(self::MACRO_METHOD, function (Field $builder) { |
||
23 | return new static($builder->getClassMetadata(), $builder->getName()); |
||
24 | }); |
||
25 | |||
26 | ManyToOne::macro(self::MACRO_METHOD, function (ManyToOne $builder) { |
||
27 | return new static($builder->getClassMetadata(), $builder->getRelation()); |
||
28 | }); |
||
29 | } |
||
30 | |||
41 |