From 348b31e3a3514250f8e289cfc65296ee78c9f443 Mon Sep 17 00:00:00 2001 From: DOC_tr Date: Thu, 14 Dec 2017 23:10:17 +0300 Subject: [PATCH] fix schema:validate --- Entity/ImportLog.php | 2 +- Entity/UploadFile.php | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Entity/ImportLog.php b/Entity/ImportLog.php index 310471f..e09a7a1 100644 --- a/Entity/ImportLog.php +++ b/Entity/ImportLog.php @@ -57,7 +57,7 @@ class ImportLog /** * @var string * - * @ORM\ManyToOne(targetEntity="Doctrs\SonataImportBundle\Entity\UploadFile", inversedBy="id") + * @ORM\ManyToOne(targetEntity="Doctrs\SonataImportBundle\Entity\UploadFile", inversedBy="importLog") */ private $uploadFile; diff --git a/Entity/UploadFile.php b/Entity/UploadFile.php index 7567120..5de71f1 100644 --- a/Entity/UploadFile.php +++ b/Entity/UploadFile.php @@ -72,6 +72,11 @@ class UploadFile */ private $message; + /** + * @ORM\OneToMany(targetEntity="Doctrs\SonataImportBundle\Entity\ImportLog", mappedBy="uploadFile") + */ + private $importLog; + /** * Get id @@ -218,4 +223,12 @@ public function setStatusError($message) { public function __toString() { return (string)$this->message; } + + /** + * @return mixed + */ + public function getImportLog() + { + return $this->importLog; + } }