src/OfficeBrain/Bundle/CompanyBundle/Entity/Company.php line 24

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\CompanyBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use JMS\Serializer\Annotation\ExclusionPolicy;
  7. use JMS\Serializer\Annotation\Exclude;
  8. /**
  9.  * Entity For Company @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
  10.  * @author OfficeBrain 4493
  11.  */
  12. /**
  13.  * Company
  14.  *
  15.  * @ORM\Table(name="tbl_company_master")
  16.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\CompanyBundle\Entity\CompanyRepository")
  17.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
  18.  * @ExclusionPolicy("none")
  19.  */
  20. class Company
  21. {
  22.     /**
  23.      * @var integer
  24.      *
  25.      * @ORM\Column(name="id", type="bigint",length=20, options={"unsigned"=true})
  26.      * @ORM\Id
  27.      * @ORM\GeneratedValue(strategy="AUTO")
  28.      */
  29.     private $id;
  30.     /**
  31.      * Bidirectional (OWNING SIDE - FK)
  32.      * @ORM\ManyToOne(targetEntity="\App\OfficeBrain\Bundle\CompanyBundle\Entity\Company", inversedBy="child")
  33.      * @ORM\JoinColumn(name="parent_id", nullable=true)
  34.      */
  35.     protected $parent;
  36.     
  37.     /**
  38.      * Bidirectional (OWNING SIDE - FK)
  39.      * @Exclude
  40.      * @ORM\ManyToOne(targetEntity="\App\OfficeBrain\Bundle\UserBundle\Entity\User", inversedBy="company" )
  41.      * @ORM\JoinColumn(name="user_id", nullable=false)
  42.      */
  43.     protected $userc;
  44.     /**
  45.      * @var string
  46.      * @ORM\Column(name="company_name", type="string", length=255, options={"collate"="utf8_unicode_ci"} , nullable=true)
  47.      * @Assert\NotBlank(message="admin.company.companyname.not_blank")
  48.      */
  49.     private $companyName;
  50.     /**
  51.      * @var string
  52.      * @ORM\Column(name="company_asi_number", type="string", length=100, options={"collate"="utf8_unicode_ci"} , nullable=true)
  53.      * @Assert\NotBlank(message="admin.company.companyasi.not_blank")
  54.      */
  55.     private $companyAsiNumber;
  56.     /**
  57.      * @var string
  58.      * @ORM\Column(name="company_number", type="string", length=100, options={"collate"="utf8_unicode_ci"} , nullable=true)
  59.      * @Assert\NotBlank(message="admin.company.companynumber.not_blank")
  60.      */
  61.     private $companyNumber;
  62.     /**
  63.      * @var string
  64.      * @ORM\Column(name="email", type="string", length=150, options={"collate"="utf8_unicode_ci"} , nullable=true)
  65.      * @Assert\NotBlank(message="admin.company.email.not_blank")
  66.      * @Assert\Regex(
  67.      *   pattern="/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/",
  68.      *   match=true,
  69.      *   message="admin.company.valid.invalid_email"
  70.      * )
  71.      */
  72.     private $email;
  73.     /**
  74.      * @var string
  75.      * @ORM\Column(name="company_logo", type="string", length=255, options={"collate"="utf8_unicode_ci"},nullable=true , nullable=true)
  76.      */
  77.     private $companyLogo;
  78.     
  79.     /**
  80.      * @var string
  81.      * @ORM\Column(name="company_logo_url", type="string", length=255, options={"collate"="utf8_unicode_ci"},nullable=true , nullable=true)
  82.      */
  83.     private $companyLogoUrl;
  84.     /**
  85.      * @var string
  86.      * @ORM\Column(name="street1", type="string", length=255, options={"collate"="utf8_unicode_ci"} , nullable=true)
  87.      * @Assert\NotBlank(message="admin.company.address.not_blank")
  88.      */
  89.     private $street1;
  90.     /**
  91.      * @var string
  92.      * @ORM\Column(name="street2", type="string", length=255, options={"collate"="utf8_unicode_ci"},nullable=true)
  93.      */
  94.     private $street2;
  95.     /**
  96.      * @var integer
  97.      *
  98.      * @ORM\Column(name="country_id", type="bigint" ,length=20 ,options={"unsigned"=true} , nullable=true)
  99.      * @Assert\NotBlank(message="admin.company.country.not_blank")
  100.      */
  101.     private $countryId;
  102.     /**
  103.      * @var integer
  104.      * @ORM\Column(name="state_id", type="bigint" ,length=20 ,options={"unsigned"=true} , nullable=true)
  105.      * @Assert\NotBlank(message="admin.company.state.not_blank")
  106.      */
  107.     private $stateId;
  108.     /**
  109.      * @var integer
  110.      * @ORM\Column(name="city_id", type="bigint" ,length=20 ,options={"unsigned"=true} , nullable=true)
  111.      * @Assert\NotBlank(message="admin.company.city.not_blank")
  112.      */
  113.     private $cityId;
  114.     /**
  115.      * @var string
  116.      *
  117.      * @ORM\Column(name="zipcode", type="string", length=50, options={"collate"="utf8_unicode_ci"} , nullable=true)
  118.      * @Assert\NotBlank(message="admin.company.zipcode.not_blank")
  119.      */
  120.     private $zipcode;
  121.     /**
  122.      * @var string
  123.      * @ORM\Column(name="extension", type="string", length=50, options={"collate"="utf8_unicode_ci"},nullable=true)
  124.      */
  125.     private $extension;
  126.     /**
  127.      * @var string
  128.      * @ORM\Column(name="phone", type="string", length=50, options={"collate"="utf8_unicode_ci"},nullable=true)
  129.      * @Assert\Length(min=12, minMessage="admin.company.phone.invalid")
  130.      */
  131.     private $phone;
  132.     /**
  133.      * @var string
  134.      * @ORM\Column(name="mobile", type="string", length=50, options={"collate"="utf8_unicode_ci"},nullable=true)
  135.      * @Assert\Length(min=12, minMessage="admin.company.mobile.invalid")
  136.      */
  137.     private $mobile;
  138.     /**
  139.      * @var string
  140.      * @ORM\Column(name="fax", type="string", length=255, options={"collate"="utf8_unicode_ci"},nullable=true)
  141.      * @Assert\Length(min=12, minMessage="admin.company.fax.invalid")
  142.      */
  143.     private $fax;
  144.     /**
  145.      * @var string
  146.      * @ORM\Column(name="website", type="string", length=255, options={"collate"="utf8_unicode_ci"},nullable=true)
  147.      * @Assert\Regex(pattern="/^(https?:\/\/|http?:\/\/|HTTPS?:\/\/|HTTP?:\/\/)?([\da-zA-Z\.-]+)\.([a-zA-Z\.]{2,6})([\/\w \.-]*)*\/?$/",   match=true,   message="admin.company.valid.invalid_website" )
  148.      */
  149.     private $website;
  150.     /**
  151.      * @var integer
  152.      * @ORM\Column(name="erp_id", type="bigint" ,length=20 ,options={"unsigned"=true} , nullable=true)
  153.      */
  154.     private $erpId;
  155.     /**
  156.      * @var datetime
  157.      *
  158.      * @Gedmo\Timestampable()
  159.      * @ORM\Column(name="created_at",type="datetime",nullable=true)
  160.      */
  161.     protected $createdAt;
  162.     /**
  163.      * @var datetime
  164.      *
  165.      * @Gedmo\Timestampable()
  166.      * @ORM\Column( name="updated_at", type="datetime",nullable=true)
  167.      */
  168.     protected $updatedAt;
  169.     /**
  170.      * @var datetime
  171.      *
  172.      * @ORM\Column(name="deleted_at",type="datetime",  nullable=true)
  173.      */
  174.     protected $deletedAt;
  175.     /**
  176.      * @var integer
  177.      * @ORM\Column(name="created_uid", type="bigint" ,length=20 ,options={"unsigned"=true},nullable=true)
  178.      */
  179.     private $createdUid;
  180.     /**
  181.      * @var integer
  182.      * @ORM\Column(name="updated_uid", type="bigint" ,length=20 ,options={"unsigned"=true},nullable=true)
  183.      */
  184.     private $updatedUid;
  185.     /**
  186.      * @var integer
  187.      * @ORM\Column(name="deleted_uid", type="bigint" ,length=20 ,options={"unsigned"=true},nullable=true)
  188.      */
  189.     private $deletedUid;
  190.     /**
  191.      * @Exclude
  192.      * @ORM\OneToMany(targetEntity="\App\OfficeBrain\Bundle\UserBundle\Entity\User", mappedBy="userCompany")
  193.      * @ORM\JoinColumn(nullable=false)
  194.      */
  195.     protected $companyUser;
  196.     /**
  197.      * @Exclude
  198.      * @ORM\OneToMany(targetEntity="\App\OfficeBrain\Bundle\CompanyBundle\Entity\Company", mappedBy="parent")
  199.      * @ORM\JoinColumn(nullable=false)
  200.      */
  201.     protected $child;
  202.     
  203.     /**
  204.      * @var integer
  205.      * @ORM\Column(name="status", type="boolean",options={"default"=1},nullable=true)
  206.      */
  207.     protected $status;
  208.     
  209.     /**
  210.      * @var string
  211.      * @ORM\Column(name="tiory_customer_account_id", type="string", length=100, options={"collate"="utf8_unicode_ci"} , nullable=true)
  212.      * 
  213.      */
  214.     private $tioryCustomerAccountId;
  215.     
  216.     public function getTioryCustomerAccountId()
  217.     {
  218.         return $this->tioryCustomerAccountId;
  219.     }
  220.     public function setTioryCustomerAccountId($tioryCustomerAccountId)
  221.     {
  222.         $this->tioryCustomerAccountId $tioryCustomerAccountId;
  223.         return $this;
  224.     }
  225.     
  226.     /**
  227.      * Get id
  228.      *
  229.      * @return integer
  230.      */
  231.     public function getId()
  232.     {
  233.         return $this->id;
  234.     }
  235.     /**
  236.      * Constructor
  237.      */
  238.     public function __construct()
  239.     {
  240.         $this->companyUser = new \Doctrine\Common\Collections\ArrayCollection();
  241.         $this->child = new \Doctrine\Common\Collections\ArrayCollection();
  242.     }
  243.     /**
  244.      * Set companyName
  245.      *
  246.      * @param string $companyName
  247.      * @return Company
  248.      */
  249.     public function setCompanyName($companyName)
  250.     {
  251.         $this->companyName $companyName;
  252.         return $this;
  253.     }
  254.     /**
  255.      * Get companyName
  256.      *
  257.      * @return string
  258.      */
  259.     public function getCompanyName()
  260.     {
  261.         return $this->companyName;
  262.     }
  263.     public function __toString()
  264.     {
  265.         return (string) $this->companyName// Return a string representation of the entity
  266.     }
  267.     /**
  268.      * Set companyAsiNumber
  269.      *
  270.      * @param string $companyAsiNumber
  271.      * @return Company
  272.      */
  273.     public function setCompanyAsiNumber($companyAsiNumber)
  274.     {
  275.         $this->companyAsiNumber $companyAsiNumber;
  276.         return $this;
  277.     }
  278.     /**
  279.      * Get companyAsiNumber
  280.      *
  281.      * @return string
  282.      */
  283.     public function getCompanyAsiNumber()
  284.     {
  285.         return $this->companyAsiNumber;
  286.     }
  287.     /**
  288.      * Set companyNumber
  289.      *
  290.      * @param string $companyNumber
  291.      * @return Company
  292.      */
  293.     public function setCompanyNumber($companyNumber)
  294.     {
  295.         $this->companyNumber $companyNumber;
  296.         return $this;
  297.     }
  298.     /**
  299.      * Get companyNumber
  300.      *
  301.      * @return string
  302.      */
  303.     public function getCompanyNumber()
  304.     {
  305.         return $this->companyNumber;
  306.     }
  307.     /**
  308.      * Set email
  309.      *
  310.      * @param string $email
  311.      * @return Company
  312.      */
  313.     public function setEmail($email)
  314.     {
  315.         $this->email $email;
  316.         return $this;
  317.     }
  318.     /**
  319.      * Get email
  320.      *
  321.      * @return string
  322.      */
  323.     public function getEmail()
  324.     {
  325.         return $this->email;
  326.     }
  327.     /**
  328.      * Set companyLogo
  329.      *
  330.      * @param string $companyLogo
  331.      * @return Company
  332.      */
  333.     public function setCompanyLogo($companyLogo)
  334.     {
  335.         $this->companyLogo $companyLogo;
  336.         return $this;
  337.     }
  338.     /**
  339.      * Get companyLogo
  340.      *
  341.      * @return string
  342.      */
  343.     public function getCompanyLogo()
  344.     {
  345.         return $this->companyLogo;
  346.     }
  347.     /**
  348.      * Set street1
  349.      *
  350.      * @param string $street1
  351.      * @return Company
  352.      */
  353.     public function setStreet1($street1)
  354.     {
  355.         $this->street1 $street1;
  356.         return $this;
  357.     }
  358.     /**
  359.      * Get street1
  360.      *
  361.      * @return string
  362.      */
  363.     public function getStreet1()
  364.     {
  365.         return $this->street1;
  366.     }
  367.     /**
  368.      * Set street2
  369.      *
  370.      * @param string $street2
  371.      * @return Company
  372.      */
  373.     public function setStreet2($street2)
  374.     {
  375.         $this->street2 $street2;
  376.         return $this;
  377.     }
  378.     /**
  379.      * Get street2
  380.      *
  381.      * @return string
  382.      */
  383.     public function getStreet2()
  384.     {
  385.         return $this->street2;
  386.     }
  387.     /**
  388.      * Set countryId
  389.      *
  390.      * @param integer $countryId
  391.      * @return Company
  392.      */
  393.     public function setCountryId($countryId)
  394.     {
  395.         $this->countryId $countryId;
  396.         return $this;
  397.     }
  398.     /**
  399.      * Get countryId
  400.      *
  401.      * @return integer
  402.      */
  403.     public function getCountryId()
  404.     {
  405.         return $this->countryId;
  406.     }
  407.     /**
  408.      * Set stateId
  409.      *
  410.      * @param integer $stateId
  411.      * @return Company
  412.      */
  413.     public function setStateId($stateId)
  414.     {
  415.         $this->stateId $stateId;
  416.         return $this;
  417.     }
  418.     /**
  419.      * Get stateId
  420.      *
  421.      * @return integer
  422.      */
  423.     public function getStateId()
  424.     {
  425.         return $this->stateId;
  426.     }
  427.     /**
  428.      * Set cityId
  429.      *
  430.      * @param integer $cityId
  431.      * @return Company
  432.      */
  433.     public function setCityId($cityId)
  434.     {
  435.         $this->cityId $cityId;
  436.         return $this;
  437.     }
  438.     /**
  439.      * Get cityId
  440.      *
  441.      * @return integer
  442.      */
  443.     public function getCityId()
  444.     {
  445.         return $this->cityId;
  446.     }
  447.     /**
  448.      * Set zipcode
  449.      *
  450.      * @param string $zipcode
  451.      * @return Company
  452.      */
  453.     public function setZipcode($zipcode)
  454.     {
  455.         $this->zipcode $zipcode;
  456.         return $this;
  457.     }
  458.     /**
  459.      * Get zipcode
  460.      *
  461.      * @return string
  462.      */
  463.     public function getZipcode()
  464.     {
  465.         return $this->zipcode;
  466.     }
  467.     /**
  468.      * Set extension
  469.      *
  470.      * @param string $extension
  471.      * @return Company
  472.      */
  473.     public function setExtension($extension)
  474.     {
  475.         $this->extension $extension;
  476.         return $this;
  477.     }
  478.     /**
  479.      * Get extension
  480.      *
  481.      * @return string
  482.      */
  483.     public function getExtension()
  484.     {
  485.         return $this->extension;
  486.     }
  487.     /**
  488.      * Set phone
  489.      *
  490.      * @param string $phone
  491.      * @return Company
  492.      */
  493.     public function setPhone($phone)
  494.     {
  495.         $this->phone $phone;
  496.         return $this;
  497.     }
  498.     /**
  499.      * Get phone
  500.      *
  501.      * @return string
  502.      */
  503.     public function getPhone()
  504.     {
  505.         return $this->phone;
  506.     }
  507.     /**
  508.      * Set mobile
  509.      *
  510.      * @param string $mobile
  511.      * @return Company
  512.      */
  513.     public function setMobile($mobile)
  514.     {
  515.         $this->mobile $mobile;
  516.         return $this;
  517.     }
  518.     /**
  519.      * Get mobile
  520.      *
  521.      * @return string
  522.      */
  523.     public function getMobile()
  524.     {
  525.         return $this->mobile;
  526.     }
  527.     /**
  528.      * Set fax
  529.      *
  530.      * @param string $fax
  531.      * @return Company
  532.      */
  533.     public function setFax($fax)
  534.     {
  535.         $this->fax $fax;
  536.         return $this;
  537.     }
  538.     /**
  539.      * Get fax
  540.      *
  541.      * @return string
  542.      */
  543.     public function getFax()
  544.     {
  545.         return $this->fax;
  546.     }
  547.     /**
  548.      * Set website
  549.      *
  550.      * @param string $website
  551.      * @return Company
  552.      */
  553.     public function setWebsite($website)
  554.     {
  555.         $this->website $website;
  556.         return $this;
  557.     }
  558.     /**
  559.      * Get website
  560.      *
  561.      * @return string
  562.      */
  563.     public function getWebsite()
  564.     {
  565.         return $this->website;
  566.     }
  567.     /**
  568.      * Set erpId
  569.      *
  570.      * @param integer $erpId
  571.      * @return Company
  572.      */
  573.     public function setErpId($erpId)
  574.     {
  575.         $this->erpId $erpId;
  576.         return $this;
  577.     }
  578.     /**
  579.      * Get erpId
  580.      *
  581.      * @return integer
  582.      */
  583.     public function getErpId()
  584.     {
  585.         return $this->erpId;
  586.     }
  587.     /**
  588.      * Set createdAt
  589.      *
  590.      * @param \DateTime $createdAt
  591.      * @return Company
  592.      */
  593.     public function setCreatedAt($createdAt)
  594.     {
  595.         $this->createdAt $createdAt;
  596.         return $this;
  597.     }
  598.     /**
  599.      * Get createdAt
  600.      *
  601.      * @return \DateTime
  602.      */
  603.     public function getCreatedAt()
  604.     {
  605.         return $this->createdAt;
  606.     }
  607.     /**
  608.      * Set updatedAt
  609.      *
  610.      * @param \DateTime $updatedAt
  611.      * @return Company
  612.      */
  613.     public function setUpdatedAt($updatedAt)
  614.     {
  615.         $this->updatedAt $updatedAt;
  616.         return $this;
  617.     }
  618.     /**
  619.      * Get updatedAt
  620.      *
  621.      * @return \DateTime
  622.      */
  623.     public function getUpdatedAt()
  624.     {
  625.         return $this->updatedAt;
  626.     }
  627.     /**
  628.      * Set deletedAt
  629.      *
  630.      * @param \DateTime $deletedAt
  631.      * @return Company
  632.      */
  633.     public function setDeletedAt($deletedAt)
  634.     {
  635.         $this->deletedAt $deletedAt;
  636.         return $this;
  637.     }
  638.     /**
  639.      * Get deletedAt
  640.      *
  641.      * @return \DateTime
  642.      */
  643.     public function getDeletedAt()
  644.     {
  645.         return $this->deletedAt;
  646.     }
  647.     /**
  648.      * Set createdUid
  649.      *
  650.      * @param integer $createdUid
  651.      * @return Company
  652.      */
  653.     public function setCreatedUid($createdUid)
  654.     {
  655.         $this->createdUid $createdUid;
  656.         return $this;
  657.     }
  658.     /**
  659.      * Get createdUid
  660.      *
  661.      * @return integer
  662.      */
  663.     public function getCreatedUid()
  664.     {
  665.         return $this->createdUid;
  666.     }
  667.     /**
  668.      * Set updatedUid
  669.      *
  670.      * @param integer $updatedUid
  671.      * @return Company
  672.      */
  673.     public function setUpdatedUid($updatedUid)
  674.     {
  675.         $this->updatedUid $updatedUid;
  676.         return $this;
  677.     }
  678.     /**
  679.      * Get updatedUid
  680.      *
  681.      * @return integer
  682.      */
  683.     public function getUpdatedUid()
  684.     {
  685.         return $this->updatedUid;
  686.     }
  687.     /**
  688.      * Set deletedUid
  689.      *
  690.      * @param integer $deletedUid
  691.      * @return Company
  692.      */
  693.     public function setDeletedUid($deletedUid)
  694.     {
  695.         $this->deletedUid $deletedUid;
  696.         return $this;
  697.     }
  698.     /**
  699.      * Get deletedUid
  700.      *
  701.      * @return integer
  702.      */
  703.     public function getDeletedUid()
  704.     {
  705.         return $this->deletedUid;
  706.     }
  707.     /**
  708.      * Set userc
  709.      *
  710.      * @param \App\OfficeBrain\Bundle\UserBundle\Entity\User $userc
  711.      * @return Company
  712.      */
  713.     public function setUserc($userc)
  714.     {
  715.         $this->userc $userc;
  716.         return $this;
  717.     }
  718.     /**
  719.      * Get userc
  720.      *
  721.      * @return \App\OfficeBrain\Bundle\UserBundle\Entity\User
  722.      */
  723.     public function getUserc()
  724.     {
  725.         return $this->userc;
  726.     }
  727.     /**
  728.      * Add companyUser
  729.      *
  730.      * @param \App\OfficeBrain\Bundle\UserBundle\Entity\User $companyUser
  731.      * @return Company
  732.      */
  733.     public function addCompanyUser($companyUser)
  734.     {
  735.         $this->companyUser[] = $companyUser;
  736.         return $this;
  737.     }
  738.     /**
  739.      * Remove companyUser
  740.      *
  741.      * @param \App\OfficeBrain\Bundle\UserBundle\Entity\User $companyUser
  742.      */
  743.     public function removeCompanyUser($companyUser)
  744.     {
  745.         $this->companyUser->removeElement($companyUser);
  746.     }
  747.     /**
  748.      * Get companyUser
  749.      *
  750.      * @return \Doctrine\Common\Collections\Collection
  751.      */
  752.     public function getCompanyUser()
  753.     {
  754.         return $this->companyUser;
  755.     }
  756.     /**
  757.      * Add child
  758.      *
  759.      * @param \App\OfficeBrain\Bundle\CompanyBundle\Entity\Company $child
  760.      * @return Company
  761.      */
  762.     public function addChild($child)
  763.     {
  764.         $this->child[] = $child;
  765.         return $this;
  766.     }
  767.     /**
  768.      * Remove child
  769.      *
  770.      * @param \App\OfficeBrain\Bundle\CompanyBundle\Entity\Company $child
  771.      */
  772.     public function removeChild($child)
  773.     {
  774.         $this->child->removeElement($child);
  775.     }
  776.     /**
  777.      * Get child
  778.      *
  779.      * @return \Doctrine\Common\Collections\Collection
  780.      */
  781.     public function getChild()
  782.     {
  783.         return $this->child;
  784.     }
  785.     public function getStatus()
  786.     {
  787.         return $this->status;
  788.     }
  789.     public function setStatus($status)
  790.     {
  791.         $this->status $status;
  792.         return $this;
  793.     }
  794.     /**
  795.      * Set companyLogoUrl
  796.      *
  797.      * @param string $companyLogoUrl
  798.      * @return Company
  799.      */
  800.     public function setCompanyLogoUrl($companyLogoUrl)
  801.     {
  802.         $this->companyLogoUrl $companyLogoUrl;
  803.         return $this;
  804.     }
  805.     /**
  806.      * Get companyLogoUrl
  807.      *
  808.      * @return string 
  809.      */
  810.     public function getCompanyLogoUrl()
  811.     {
  812.         return $this->companyLogoUrl;
  813.     }
  814.     /**
  815.      * Set parent
  816.      *
  817.      * @param \App\OfficeBrain\Bundle\CompanyBundle\Entity\Company $parent
  818.      * @return Company
  819.      */
  820.     public function setParent(\App\OfficeBrain\Bundle\CompanyBundle\Entity\Company $parent null)
  821.     {
  822.         $this->parent $parent;
  823.         return $this;
  824.     }
  825.     /**
  826.      * Get parent
  827.      *
  828.      * @return \App\OfficeBrain\Bundle\CompanyBundle\Entity\Company 
  829.      */
  830.     public function getParent()
  831.     {
  832.         return $this->parent;
  833.     }
  834. }