dictionary = $dictionary; $this->string1 = $string; } /** * @ORM\ManyToOne(targetEntity="Dictionary", inversedBy="fullDict",cascade={"persist", "remove" }) */ protected $dictionary; /** * Get id * * @return integer */ public function getId() { return $this->id; } } ?>