Added database migration for new entities.

This commit is contained in:
Jan Böhmer 2019-08-12 18:04:53 +02:00
parent 7826e3d2ad
commit 408d98c6e1
25 changed files with 246 additions and 99 deletions

View file

@ -32,7 +32,9 @@
namespace App\Entity\Parts;
use App\Entity\Base\DBElement;
use App\Entity\Base\NamedDBElement;
use App\Entity\Base\TimestampTrait;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
@ -42,10 +44,13 @@ use Symfony\Component\Validator\Constraints as Assert;
* @package App\Entity\Parts
* @ORM\Entity()
* @ORM\Table(name="part_lots")
* @ORM\HasLifecycleCallbacks()
*/
class PartLot extends NamedDBElement
class PartLot extends DBElement
{
use TimestampTrait;
/**
* @var string A short description about this lot, shown in table
* @ORM\Column(type="text")