Show part lots on part's info page.

This commit is contained in:
Jan Böhmer 2019-08-16 22:54:23 +02:00
parent c2b43f2cfa
commit 7517d83f55
7 changed files with 312 additions and 44 deletions

View file

@ -62,6 +62,8 @@ declare(strict_types=1);
namespace App\Entity\Parts;
use App\Entity\Base\PartsContainingDBElement;
use App\Entity\Base\StructuralDBElement;
use App\Form\Type\StructuralEntityType;
use Doctrine\ORM\Mapping as ORM;
/**
@ -70,7 +72,7 @@ use Doctrine\ORM\Mapping as ORM;
* @ORM\Entity(repositoryClass="App\Repository\StructuralDBElementRepository")
* @ORM\Table("`storelocations`")
*/
class Storelocation extends PartsContainingDBElement
class Storelocation extends StructuralDBElement
{
/**
* @ORM\OneToMany(targetEntity="Storelocation", mappedBy="parent")
@ -83,11 +85,6 @@ class Storelocation extends PartsContainingDBElement
*/
protected $parent;
/**
* @ORM\OneToMany(targetEntity="Part", mappedBy="storelocation")
*/
protected $parts;
/**
* @var bool
* @ORM\Column(type="boolean")