. */ namespace Doctrine\Tests\Models\DirectoryTree; /** * @Entity */ class Directory extends AbstractContentItem { /** * @OneToMany(targetEntity="Directory", mappedBy="parent") */ protected $subDirectories; /** * @OneToMany(targetEntity="File", mappedBy="parent") */ protected $containedFiles; /** * @Column(type="string") */ protected $path; }