mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-03 06:54:34 +02:00
Added migration from old Database to new database.
This commit is contained in:
parent
42c8222e35
commit
2f39ac90a2
19 changed files with 391 additions and 31 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue