You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates a many to one relationship with `Mautic\CategoryBundle\Entity\Category`. Defines a ``category`` ORM property mapped to a ``category_id`` column on the table with a foreign key to ``categories.id``.
33
+
Creates a many to one relationship with `Mautic\CategoryBundle\Entity\Category`. Defines a ``category`` ORM property mapped to a ``category_id`` column on the table with a foreign key to ``categories.id``.
Creates a many to one relationship with `Mautic\LeadBundle\Entity\Lead`. Defines a ``contact`` ORM property mapped to a ``contact_id`` column on the table with a foreign key to ``leads.id``.
40
+
Creates a many to one relationship with `Mautic\LeadBundle\Entity\Lead`. Defines a ``contact`` ORM property mapped to a ``contact_id`` column on the table with a foreign key to ``leads.id``.
41
41
42
-
:param bool $nullable: ``TRUE`` to allow ``NULL`` values.
43
-
:param string $onDelete: Foreign key reference option such as ``CASCADE`` or ``SET NULL``.
44
-
:param bool $isPrimaryKey: ``TRUE`` to configure this field as a primary key for the table.
45
-
:param string|null $inversedBy: Property on the ``Mautic\LeadBundle\Entity\Lead`` entity this relates to. This is only used by Core.
42
+
:param bool $nullable: ``TRUE`` to allow ``NULL`` values.
43
+
:param string $onDelete: Foreign key reference option such as ``CASCADE`` or ``SET NULL``.
44
+
:param bool $isPrimaryKey: ``TRUE`` to configure this field as a primary key for the table.
45
+
:param string|null $inversedBy: Property on the ``Mautic\LeadBundle\Entity\Lead`` entity this relates to. This is only used by Core.
Decorates ``Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder::addField`` that sets the max length to 191 characters for string typed or indexed fields for compatibility with UTF8MB4 encoding.
61
+
Decorates ``Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder::addField`` that sets the max length to 191 characters for string typed or indexed fields for compatibility with UTF8MB4 encoding.
62
62
63
-
:param string $name: Name of the ORM field.
64
-
:param string $type: Doctrine field type. See ``Doctrine\DBAL\Types\Types``.
65
-
:param array $mapping: Custom field definitions.
63
+
:param string $name: Name of the ORM field.
64
+
:param string $type: Doctrine field type. See ``Doctrine\DBAL\Types\Types``.
Creates ``id``, ``name``, and ``description`` ORM fields. ``id`` is an auto-incremented unsigned integer set as a primary key. ``name`` is created as ``varchar(191)`` and ``description`` as ``longtext``. Customize the ORM names for ``name`` and ``description`` through the optional parameters.
77
+
Creates ``id``, ``name``, and ``description`` ORM fields. ``id`` is an auto-incremented unsigned integer set as a primary key. ``name`` is created as ``varchar(191)`` and ``description`` as ``longtext``. Customize the ORM names for ``name`` and ``description`` through the optional parameters.
78
78
79
-
:param string $nameColumn: Customize the name for the ``name`` field.
80
-
:param string $descriptionColumn: Customize the name for the ``description`` field.
79
+
:param string $nameColumn: Customize the name for the ``name`` field.
80
+
:param string $descriptionColumn: Customize the name for the ``description`` field.
Creates a many to one relationship with `Mautic\CoreBundle\Entity\IpAddress`. Defines a ``ipAddress`` ORM property mapped to a ``ip_id`` column on the table with a foreign key to ``ip_addresses.id``.
87
+
Creates a many to one relationship with `Mautic\CoreBundle\Entity\IpAddress`. Defines a ``ipAddress`` ORM property mapped to a ``ip_id`` column on the table with a foreign key to ``ip_addresses.id``.
88
88
89
-
:param bool $nullable: ``TRUE`` to allow ``NULL`` values.
89
+
:param bool $nullable: ``TRUE`` to allow ``NULL`` values.
Creates a ``id`` GUID field as a primary key. You should generate a UUID in the entity's ``__construct`` or pass one into the ``__construct`` when creating a new entity. You can use ``$this->id = Ramsey\Uuid\Uuid::uuid4()->toString();``.
126
+
Creates a ``id`` GUID field as a primary key. You should generate a UUID in the entity's ``__construct`` or pass one into the ``__construct`` when creating a new entity. You can use ``$this->id = Ramsey\Uuid\Uuid::uuid4()->toString();``.
Creates a many to many field to the targeted entity. Instantiates and returns a ``Mautic\CoreBundle\Doctrine\Mapping\ManyToManyAssociationBuilder`` object that decorates ``Doctrine\ORM\Mapping\Builder\ManyToManyAssociationBuilder`` with ``orphanRemoval()`` support.
139
+
Creates a many to many field to the targeted entity. Instantiates and returns a ``Mautic\CoreBundle\Doctrine\Mapping\ManyToManyAssociationBuilder`` object that decorates ``Doctrine\ORM\Mapping\Builder\ManyToManyAssociationBuilder`` with ``orphanRemoval()`` support.
140
140
141
-
:param string $name: Name of the ORM field.
142
-
:param string $targetEntity: Fully qualified classname for the targeted entity.
141
+
:param string $name: Name of the ORM field.
142
+
:param string $targetEntity: Fully qualified classname for the targeted entity.
Creates a field with a many to one relationship to the targeted entity. Instantiates and returns a ``Mautic\CoreBundle\Doctrine\Mapping\AssociationBuilder`` object that decorates ``Doctrine\ORM\Mapping\Builder\AssociationBuilder`` with ``orphanRemoval()`` and ``isPrimaryKey()`` support.
148
+
Creates a field with a many to one relationship to the targeted entity. Instantiates and returns a ``Mautic\CoreBundle\Doctrine\Mapping\AssociationBuilder`` object that decorates ``Doctrine\ORM\Mapping\Builder\AssociationBuilder`` with ``orphanRemoval()`` and ``isPrimaryKey()`` support.
149
149
150
-
:param string $name: Name of the ORM field.
151
-
:param string $targetEntity: Fully qualified classname for the targeted entity.
150
+
:param string $name: Name of the ORM field.
151
+
:param string $targetEntity: Fully qualified classname for the targeted entity.
Creates a field with a one to many relationship to the targeted entity. Instantiates and returns a ``Mautic\CoreBundle\Doctrine\Mapping\OneToManyAssociationBuilder`` object that decorates ``Doctrine\ORM\Mapping\Builder\OneToManyAssociationBuilder`` with ``orphanRemoval()`` support.
157
+
Creates a field with a one to many relationship to the targeted entity. Instantiates and returns a ``Mautic\CoreBundle\Doctrine\Mapping\OneToManyAssociationBuilder`` object that decorates ``Doctrine\ORM\Mapping\Builder\OneToManyAssociationBuilder`` with ``orphanRemoval()`` support.
158
158
159
-
:param string $name: Name of the ORM field.
160
-
:param string $targetEntity: Fully qualified classname for the targeted entity.
159
+
:param string $name: Name of the ORM field.
160
+
:param string $targetEntity: Fully qualified classname for the targeted entity.
Creates a field with a one to one relationship to the targeted entity. Instantiates and returns a ``Mautic\CoreBundle\Doctrine\Mapping\AssociationBuilder`` object that decorates ``Doctrine\ORM\Mapping\Builder\AssociationBuilder`` with ``orphanRemoval()`` and ``isPrimaryKey()`` support.
166
+
Creates a field with a one to one relationship to the targeted entity. Instantiates and returns a ``Mautic\CoreBundle\Doctrine\Mapping\AssociationBuilder`` object that decorates ``Doctrine\ORM\Mapping\Builder\AssociationBuilder`` with ``orphanRemoval()`` and ``isPrimaryKey()`` support.
167
167
168
-
:param string $name: Name of the ORM field.
169
-
:param string $targetEntity: Fully qualified classname for the targeted entity.
168
+
:param string $name: Name of the ORM field.
169
+
:param string $targetEntity: Fully qualified classname for the targeted entity.
0 commit comments