Skip to content

Commit

Permalink
fix schema:validate
Browse files Browse the repository at this point in the history
  • Loading branch information
Doctrs committed Dec 14, 2017
1 parent 7b44895 commit 348b31e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Entity/ImportLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
13 changes: 13 additions & 0 deletions Entity/UploadFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ class UploadFile
*/
private $message;

/**
* @ORM\OneToMany(targetEntity="Doctrs\SonataImportBundle\Entity\ImportLog", mappedBy="uploadFile")
*/
private $importLog;


/**
* Get id
Expand Down Expand Up @@ -218,4 +223,12 @@ public function setStatusError($message) {
public function __toString() {
return (string)$this->message;
}

/**
* @return mixed
*/
public function getImportLog()
{
return $this->importLog;
}
}

0 comments on commit 348b31e

Please sign in to comment.