EC-CUBE /
ec-cube
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Acme\Entity; |
||
| 4 | |||
| 5 | use Doctrine\ORM\Mapping\AssociationOverride; |
||
| 6 | use Doctrine\ORM\Mapping\AssociationOverrides; |
||
| 7 | use Doctrine\ORM\Mapping\AttributeOverride; |
||
| 8 | use Doctrine\ORM\Mapping\AttributeOverrides; |
||
| 9 | use Doctrine\ORM\Mapping\OneToOne; |
||
| 10 | use Doctrine\ORM\Mapping\JoinColumn; |
||
| 11 | use Doctrine\ORM\Mapping\Column; |
||
| 12 | use Doctrine\ORM\Mapping\Entity; |
||
| 13 | use Doctrine\ORM\Mapping\Table; |
||
| 14 | use Doctrine\ORM\Mapping\Id; |
||
| 15 | use Doctrine\ORM\Mapping\ManyToOne; |
||
| 16 | use Doctrine\ORM\Mapping\InheritanceType; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Product の拡張 |
||
| 20 | * @Entity |
||
| 21 | * @Table(name="extended_product") |
||
| 22 | */ |
||
| 23 | class ExtendedProduct extends \Eccube\Entity\Product |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @Column(name="extended_parameter", type="string") |
||
| 27 | */ |
||
| 28 | public $extendedParameter; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * public フィールドでも大丈夫っぽい |
||
| 32 | * |
||
| 33 | * @ManyToOne(targetEntity="\Eccube\Entity\Master\Country") |
||
| 34 | * @JoinColumn(name="country_id", referencedColumnName="id") |
||
| 35 | */ |
||
| 36 | public $Country; |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 37 | } |
||
| 38 |