Advertisement
Guest User

Untitled

a guest
Aug 9th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. /** @OneToMany(targetEntity="Address", mappedBy="contact", orphanRemoval=true) */
  2. private $addresses;
  3.  
  4. public function __construct()
  5. {
  6. $this->addresses = new ArrayCollection();
  7. }
  8.  
  9. public function setAdderss($address)
  10. {
  11. $this->addresses[] = $address
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement