Made order and pricedetails timestampable.

Further the migration fixes the typos in attachment table names and filled empty timestamps with the current date.
This commit is contained in:
Jan Böhmer 2019-08-29 13:06:04 +02:00
parent d79f580b30
commit 1776cd9a77
6 changed files with 115 additions and 28 deletions

View file

@ -33,7 +33,7 @@ use Symfony\Component\Validator\Constraints as Assert;
* Class Attachment.
*
* @ORM\Entity
* @ORM\Table(name="`attachements`")
* @ORM\Table(name="`attachments`")
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="class_name", type="string")
* @ORM\DiscriminatorMap({"PartDB\Part" = "PartAttachment", "Part" = "PartAttachment"})

View file

@ -61,7 +61,7 @@ use Doctrine\ORM\Mapping as ORM;
* Class AttachmentType.
*
* @ORM\Entity(repositoryClass="App\Repository\StructuralDBElementRepository")
* @ORM\Table(name="`attachement_types`")
* @ORM\Table(name="`attachment_types`")
*/
class AttachmentType extends StructuralDBElement
{