Created
November 17, 2015 11:22
-
-
Save gghhh456/09d89babda2cb5a0968d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* OemPartPosGrpText | |
* | |
* @ORM\Table(name="oem_PartPosGrpText") | |
* @ORM\Entity(repositoryClass="Test\MyBundle\Entity\SpareParts\Repo\SparePartMenuRepository") | |
* | |
*/ | |
class OemPartPosGrpText{ | |
/** | |
* @var integer | |
* | |
* @ORM\Column(name="PartGrpIDK", type="integer") | |
* @ORM\Id | |
* @ORM\GeneratedValue(strategy="IDENTITY") | |
*/ | |
private $partgrpidk; | |
/** | |
* @ORM\OneToMany(targetEntity="OemPartPosSubText", mappedBy="partsubidk") | |
*/ | |
private $partsubidk; | |
public function __construct(){ | |
$this->partsubidk = new ArrayCollection(); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* oemPartPosSubText | |
* | |
* @ORM\Table(name="oem_PartPosSubText") | |
* @ORM\Entity(repositoryClass="Test\MyBundle\Entity\SpareParts\Repo\SparePartMenuRepository") | |
*/ | |
class partSubText{ | |
/** | |
* @var integer | |
* | |
* @ORM\Column(name="PartSubIDK", type="integer") | |
* @ORM\Id | |
* @ORM\GeneratedValue(strategy="IDENTITY") | |
*/ | |
private $partsubidk; | |
/** | |
* @ORM\ManytoOne(targetEntity="OemPartPosGrpText",inversedBy="partgrpidk") | |
* @ORM\JoinColumn(name="PartGrpIDK", referencedColumnName="PartGrpIDK") | |
*/ | |
private $partgrpidk; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment