3 namespace Doctrine\Tests\Models\Legacy;
5 use Doctrine\Common\Collections\ArrayCollection;
9 * @Table(name="legacy_cars")
16 * @Column(name="iCarId", type="integer", nullable=false)
20 * @ManyToMany(targetEntity="LegacyUser", mappedBy="_cars")
25 * @Column(name="sDescription", type="string", length=255, unique=true)
29 function getDescription()
31 return $this->_description;
34 public function addUser(LegacyUser $user) {
35 $this->_users[] = $user;
38 public function getUsers() {