forked from DigitalState/Platform-Transport-Bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Transport.php
77 lines (70 loc) · 2.16 KB
/
Transport.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
namespace Ds\Bundle\TransportBundle\Entity;
use Ds\Bundle\EntityBundle\Entity\Attribute;
use Oro\Bundle\OrganizationBundle\Entity\Ownership;
use Oro\Bundle\LocaleBundle\Entity\FallbackTrait;
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\Config;
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints as ORMAssert;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Class Transport
*
* @Config(
* routeName="ds_transport_transport_index",
* routeView="ds_transport_transport_view",
* routeCreate="ds_transport_transport_create",
* routeEdit="ds_transport_transport_edit",
* defaultValues={
* "entity"={
* "icon"="icon-list-alt",
* "type"="transport",
* "alias"=""
* },
* "ownership"={
* "owner_type"="BUSINESS_UNIT",
* "owner_field_name"="owner",
* "owner_column_name"="business_unit_owner_id",
* "organization_field_name"="organization",
* "organization_column_name"="organization_id"
* },
* "security"={
* "type"="ACL",
* "permissions"="All"
* },
* "manager"={
* "default"="ds.transport.manager.transport"
* },
* "form"={
* "form_type"="ds_transport_transport"
* },
* "grid"={
* "default"="ds-transport-transport"
* }
* }
* )
* @ORM\Entity(repositoryClass="Ds\Bundle\TransportBundle\Repository\TransportRepository")
* @ORM\Table(name="ds_transport")
* @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="discriminator", type="string")
* @ORM\HasLifecycleCallbacks()
*/
class Transport
{
use Attribute\Id;
use Attribute\CreatedAt;
use Attribute\UpdatedAt;
use Attribute\Title;
use Attribute\Implementation;
use Attribute\Data;
use Ownership\BusinessUnitAwareTrait;
use FallbackTrait;
/**
* Constructor
*/
public function __construct()
{
$this->data = [];
}
}