From 2dff4198c3b9f436f091cbb099375df47687f4b9 Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Tue, 3 Jan 2017 10:46:27 +0100 Subject: [PATCH] Add "getParent" method to File (#159) --- Doctrine/Phpcr/File.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doctrine/Phpcr/File.php b/Doctrine/Phpcr/File.php index e4be180..78c854c 100644 --- a/Doctrine/Phpcr/File.php +++ b/Doctrine/Phpcr/File.php @@ -75,6 +75,14 @@ public function setParentDocument($parent) return $this; } + /** + * {@inheritdoc} + */ + public function getParent() + { + return $this->getParentDocument(); + } + /** * {@inheritdoc} */