Added migration from old Database to new database.

This commit is contained in:
Jan Böhmer 2019-08-06 13:18:29 +02:00
parent 42c8222e35
commit 2f39ac90a2
19 changed files with 391 additions and 31 deletions

View file

@ -37,7 +37,7 @@ use Doctrine\ORM\Mapping as ORM;
/**
* Class DevicePart.
*
* @ORM\Table("device_parts")
* @ORM\Table("`device_parts`")
* @ORM\Entity()
*/
class DevicePart extends DBElement
@ -49,9 +49,26 @@ class DevicePart extends DBElement
*/
protected $device;
//TODO
/**
* @var Part
* @ORM\ManyToOne(targetEntity="Part")
* @ORM\JoinColumn(name="id_part", referencedColumnName="id")
*/
protected $part;
/**
* @var int
* @ORM\Column(type="integer", name="quantity")
*/
protected $quantity;
/**
* @var string
* @ORM\Column(type="text", name="mountnames")
*/
protected $mountnames;
/**
* Returns the ID as an string, defined by the element class.
* This should have a form like P000014, for a part with ID 14.