. */ namespace Doctrine\Tests\Models\DirectoryTree; /** * @MappedSuperclass */ abstract class AbstractContentItem { /** * @Id @Column(type="integer") @GeneratedValue */ private $id; /** * @ManyToOne(targetEntity="Directory") */ protected $parentDirectory; /** @column(type="string") */ protected $name; public function __get($name) { return $this->$name; } public function __set($name, $value) { $this->$name = $value; } }