diff --git a/docs/en/reference/annotations-reference.rst b/docs/en/reference/annotations-reference.rst index 8da4ff03683..91aeae9e799 100644 --- a/docs/en/reference/annotations-reference.rst +++ b/docs/en/reference/annotations-reference.rst @@ -127,7 +127,7 @@ Optional attributes: included when inserting a new row into the underlying entities table. Reloads the value after inserts or updates if the value is false. If not specified, default value is true. -- **updateable**: Boolean value to determine if the column should be +- **updatable**: Boolean value to determine if the column should be included when updating the row of the underlying entities table. Reloads the value after inserts or updates if the value is false. If not specified, default value is true. @@ -203,7 +203,7 @@ Examples: /** * Generated column - * @Column(type="string", name="user_fullname", insertable=false, updateable=false) + * @Column(type="string", name="user_fullname", insertable=false, updatable=false) */ protected $fullname; diff --git a/docs/en/reference/attributes-reference.rst b/docs/en/reference/attributes-reference.rst index 2c6b6b23447..c7fc7a14e04 100644 --- a/docs/en/reference/attributes-reference.rst +++ b/docs/en/reference/attributes-reference.rst @@ -94,7 +94,7 @@ Optional attributes: Reloads the value after inserts or updates if the value is false. If not specified, default value is ``true``. -- **updateable**: Boolean value to determine if the column should be +- **updatable**: Boolean value to determine if the column should be included when updating the row of the underlying entities table. Reloads the value after inserts or updates if the value is false. If not specified, default value is ``true``. diff --git a/docs/en/reference/basic-mapping.rst b/docs/en/reference/basic-mapping.rst index 99508243474..4cf23c1ba72 100644 --- a/docs/en/reference/basic-mapping.rst +++ b/docs/en/reference/basic-mapping.rst @@ -201,7 +201,7 @@ list: column is nullable. - ``insertable``: (optional, default TRUE) Whether the database column should be inserted. -- ``updateable``: (optional, default TRUE) Whether the database +- ``updatable``: (optional, default TRUE) Whether the database column should be updated. - ``precision``: (optional, default 0) The precision for a decimal (exact numeric) column (applies only for decimal column), diff --git a/docs/en/reference/xml-mapping.rst b/docs/en/reference/xml-mapping.rst index 131cef9460d..d014b63fac9 100644 --- a/docs/en/reference/xml-mapping.rst +++ b/docs/en/reference/xml-mapping.rst @@ -257,7 +257,7 @@ Optional attributes: - nullable - Should this field allow NULL as a value? Defaults to false. - insertable - Should this field be inserted? Defaults to true. -- updateable - Should this field be updated? Defaults to true. +- updatable - Should this field be updated? Defaults to true. - version - Should this field be used for optimistic locking? Only works on fields with type integer or datetime. - scale - Scale of a decimal type. diff --git a/doctrine-mapping.xsd b/doctrine-mapping.xsd index 308c2267de6..df9f48a2838 100644 --- a/doctrine-mapping.xsd +++ b/doctrine-mapping.xsd @@ -300,7 +300,7 @@ - + diff --git a/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php b/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php index 126f10baf0d..2290f002205 100644 --- a/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php +++ b/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php @@ -61,7 +61,7 @@ public function buildCacheEntry(ClassMetadata $metadata, EntityCacheKey $key, $e } foreach ($metadata->fieldMappings as $name => $fieldMapping) { - if (isset($fieldMapping['notInsertable']) || isset($fieldMapping['notUpdateable'])) { + if (isset($fieldMapping['notInsertable']) || isset($fieldMapping['notUpdatable'])) { $data[$name] = $metadata->getFieldValue($entity, $name); } } diff --git a/lib/Doctrine/ORM/Mapping/Builder/FieldBuilder.php b/lib/Doctrine/ORM/Mapping/Builder/FieldBuilder.php index 9dbb488b41b..51b366164a6 100644 --- a/lib/Doctrine/ORM/Mapping/Builder/FieldBuilder.php +++ b/lib/Doctrine/ORM/Mapping/Builder/FieldBuilder.php @@ -125,14 +125,14 @@ public function insertable(bool $flag = true) } /** - * Sets updateable. + * Sets updatable. * * @return $this */ - public function updateable(bool $flag = true) + public function updatable(bool $flag = true) { if (! $flag) { - $this->mapping['notUpdateable'] = true; + $this->mapping['notUpdatable'] = true; } return $this; diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php index b906c6d0f5b..25c03cfa137 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php @@ -78,7 +78,7 @@ * id?: bool, * nullable?: bool, * notInsertable?: bool, - * notUpdateable?: bool, + * notUpdatable?: bool, * columnDefinition?: string, * precision?: int, * scale?: int, @@ -439,8 +439,8 @@ class ClassMetadataInfo implements ClassMetadata * - 'notInsertable' (boolean, optional) * Whether the column is not insertable. Optional. Is only set if value is TRUE. * - * - 'notUpdateable' (boolean, optional) - * Whether the column is updateable. Optional. Is only set if value is TRUE. + * - 'notUpdatable' (boolean, optional) + * Whether the column is updatable. Optional. Is only set if value is TRUE. * * - columnDefinition (string, optional, schema-only) * The SQL fragment that is used when generating the DDL for the column. @@ -1300,17 +1300,17 @@ public function isInsertable($fieldName) } /** - * Checks if the field is updateable. + * Checks if the field is updatable. * * @param string $fieldName The field name. * - * @return bool TRUE if the field is updateable, FALSE otherwise. + * @return bool TRUE if the field is updatable, FALSE otherwise. */ - public function isUpdateable($fieldName) + public function isUpdatable($fieldName) { $mapping = $this->getFieldMapping($fieldName); - return ! isset($mapping['notUpdateable']); + return ! isset($mapping['notUpdatable']); } /** @@ -2688,7 +2688,7 @@ public function mapField(array $mapping) $mapping = $this->validateAndCompleteFieldMapping($mapping); $this->assertFieldNotMapped($mapping['fieldName']); - if (isset($mapping['notInsertable']) || isset($mapping['notUpdateable'])) { + if (isset($mapping['notInsertable']) || isset($mapping['notUpdatable'])) { $this->requiresFetchAfterUpdate = true; } diff --git a/lib/Doctrine/ORM/Mapping/Column.php b/lib/Doctrine/ORM/Mapping/Column.php index df1e1d54e57..45588adb008 100644 --- a/lib/Doctrine/ORM/Mapping/Column.php +++ b/lib/Doctrine/ORM/Mapping/Column.php @@ -48,7 +48,7 @@ final class Column implements Annotation public $insertable = true; /** @var bool */ - public $updateable = true; + public $updatable = true; /** @var array */ public $options = []; @@ -68,7 +68,7 @@ public function __construct( bool $unique = false, bool $nullable = false, bool $insertable = true, - bool $updateable = true, + bool $updatable = true, array $options = [], ?string $columnDefinition = null ) { @@ -80,7 +80,7 @@ public function __construct( $this->unique = $unique; $this->nullable = $nullable; $this->insertable = $insertable; - $this->updateable = $updateable; + $this->updatable = $updatable; $this->options = $options; $this->columnDefinition = $columnDefinition; } diff --git a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php index 0166b0df3dc..223edd1e6be 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php @@ -743,8 +743,8 @@ private function columnToArray(string $fieldName, Mapping\Column $column): array $mapping['notInsertable'] = true; } - if (! $column->updateable) { - $mapping['notUpdateable'] = true; + if (! $column->updatable) { + $mapping['notUpdatable'] = true; } if ($column->options) { diff --git a/lib/Doctrine/ORM/Mapping/Driver/AttributeDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AttributeDriver.php index 009e25f7667..83e35e3c141 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AttributeDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AttributeDriver.php @@ -583,8 +583,8 @@ private function columnToArray(string $fieldName, Mapping\Column $column): array $mapping['columnDefinition'] = $column->columnDefinition; } - if ($column->updateable === false) { - $mapping['notUpdateable'] = true; + if ($column->updatable === false) { + $mapping['notUpdatable'] = true; } if ($column->insertable === false) { diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index d89dad0de3f..32030953d16 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -801,7 +801,7 @@ private function joinColumnToArray(SimpleXMLElement $joinColumnElement): array * unique?: bool, * nullable?: bool, * notInsertable?: bool, - * notUpdateable?: bool, + * notUpdatable?: bool, * version?: bool, * columnDefinition?: string, * options?: array @@ -845,8 +845,8 @@ private function columnToArray(SimpleXMLElement $fieldMapping): array $mapping['notInsertable'] = true; } - if (isset($fieldMapping['updateable']) && ! $this->evaluateBoolean($fieldMapping['updateable'])) { - $mapping['notUpdateable'] = true; + if (isset($fieldMapping['updatable']) && ! $this->evaluateBoolean($fieldMapping['updatable'])) { + $mapping['notUpdatable'] = true; } if (isset($fieldMapping['version']) && $fieldMapping['version']) { diff --git a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php index 13f13e31992..a0b4aa2d316 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php @@ -787,7 +787,7 @@ private function joinColumnToArray(array $joinColumnElement): array * options?: mixed, * nullable?: mixed, * insertable?: mixed, - * updateable?: mixed, + * updatable?: mixed, * version?: mixed, * columnDefinition?: mixed * }|null $column @@ -804,7 +804,7 @@ private function joinColumnToArray(array $joinColumnElement): array * options?: mixed, * nullable?: mixed, * notInsertable?: mixed, - * notUpdateable?: mixed, + * notUpdatable?: mixed, * version?: mixed, * columnDefinition?: mixed * } @@ -856,8 +856,8 @@ private function columnToArray(string $fieldName, ?array $column): array $mapping['notInsertable'] = true; } - if (isset($column['updateable']) && ! (bool) $column['updateable']) { - $mapping['notUpdateable'] = true; + if (isset($column['updatable']) && ! (bool) $column['updatable']) { + $mapping['notUpdatable'] = true; } if (isset($column['version']) && $column['version']) { diff --git a/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php b/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php index 48e81647889..cd537fe54ac 100644 --- a/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php +++ b/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php @@ -22,7 +22,7 @@ use Doctrine\ORM\PersistentCollection; use Doctrine\ORM\Persisters\Exception\CantUseInOperatorOnCompositeKeys; use Doctrine\ORM\Persisters\Exception\InvalidOrientation; -use Doctrine\ORM\Persisters\Exception\NonUpdateableField; +use Doctrine\ORM\Persisters\Exception\NonUpdatableField; use Doctrine\ORM\Persisters\Exception\UnrecognizedField; use Doctrine\ORM\Persisters\SqlExpressionVisitor; use Doctrine\ORM\Persisters\SqlValueVisitor; @@ -324,7 +324,7 @@ protected function assignDefaultVersionAndUpsertableValues($entity, array $id) /** * Fetches the current version value of a versioned entity and / or the values of fields - * marked as 'not insertable' and / or 'not updateable'. + * marked as 'not insertable' and / or 'not updatable'. * * @param ClassMetadata $versionedClass * @param mixed[] $id @@ -335,7 +335,7 @@ protected function fetchVersionAndNotUpsertableValues($versionedClass, array $id { $columnNames = []; foreach ($this->class->fieldMappings as $key => $column) { - if (isset($column['notInsertable']) || isset($column['notUpdateable']) || ($this->class->isVersioned && $key === $versionedClass->versionField)) { + if (isset($column['notInsertable']) || isset($column['notUpdatable']) || ($this->class->isVersioned && $key === $versionedClass->versionField)) { $columnNames[$key] = $this->quoteStrategy->getColumnName($key, $versionedClass, $this->platform); } } @@ -652,7 +652,7 @@ protected function prepareUpdateData($entity, $isInsert = false) $fieldMapping = $this->class->fieldMappings[$field]; $columnName = $fieldMapping['columnName']; - if (! $isInsert && isset($fieldMapping['notUpdateable'])) { + if (! $isInsert && isset($fieldMapping['notUpdatable'])) { continue; } diff --git a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php index 4b75d71784c..aefc4a9f60b 100644 --- a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php +++ b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php @@ -223,8 +223,8 @@ public function exportClassMetadata(ClassMetadataInfo $metadata) $fieldXml->addAttribute('insertable', 'false'); } - if (isset($field['notUpdateable'])) { - $fieldXml->addAttribute('updateable', 'false'); + if (isset($field['notUpdatable'])) { + $fieldXml->addAttribute('updatable', 'false'); } } } diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 74cdc159270..2649b0286a4 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -2202,7 +2202,7 @@ parameters: path: lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php - - message: "#^Offset 'version' on array\\{type\\: string, fieldName\\: string, columnName\\?\\: string, length\\?\\: int, id\\?\\: bool, nullable\\?\\: bool, notInsertable\\?\\: bool, notUpdateable\\?\\: bool, \\.\\.\\.\\} in isset\\(\\) does not exist\\.$#" + message: "#^Offset 'version' on array\\{type\\: string, fieldName\\: string, columnName\\?\\: string, length\\?\\: int, id\\?\\: bool, nullable\\?\\: bool, notInsertable\\?\\: bool, notUpdatable\\?\\: bool, \\.\\.\\.\\} in isset\\(\\) does not exist\\.$#" count: 1 path: lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php diff --git a/tests/Doctrine/Tests/Models/Upsertable/Updateable.php b/tests/Doctrine/Tests/Models/Upsertable/Updatable.php similarity index 62% rename from tests/Doctrine/Tests/Models/Upsertable/Updateable.php rename to tests/Doctrine/Tests/Models/Upsertable/Updatable.php index 18237b24af8..cbe107831d5 100644 --- a/tests/Doctrine/Tests/Models/Upsertable/Updateable.php +++ b/tests/Doctrine/Tests/Models/Upsertable/Updatable.php @@ -13,10 +13,10 @@ /** * @Entity - * @Table(name="updateable_column") + * @Table(name="updatable_column") */ -#[Entity, Table(name: 'updateable_column')] -class Updateable +#[Entity, Table(name: 'updatable_column')] +class Updatable { /** * @var int @@ -29,22 +29,22 @@ class Updateable /** * @var string - * @Column(type="string", name="non_updateable_content", updateable=false) + * @Column(type="string", name="non_updatable_content", updatable=false) */ - #[Column(type: 'string', name: 'non_updateable_content', updateable: false)] - public $nonUpdateableContent; + #[Column(type: 'string', name: 'non_updatable_content', updatable: false)] + public $nonUpdatableContent; /** * @var string - * @Column(type="string", updateable=true) + * @Column(type="string", updatable=true) */ - #[Column(type: 'string', updateable: true)] - public $updateableContent; + #[Column(type: 'string', updatable: true)] + public $updatableContent; public static function loadMetadata(ClassMetadata $metadata) { $metadata->setPrimaryTable( - ['name' => 'updateable_column'] + ['name' => 'updatable_column'] ); $metadata->mapField( @@ -57,12 +57,12 @@ public static function loadMetadata(ClassMetadata $metadata) $metadata->mapField( [ - 'fieldName' => 'nonUpdateableContent', - 'notUpdateable' => true, + 'fieldName' => 'nonUpdatableContent', + 'notUpdatable' => true, ] ); $metadata->mapField( - ['fieldName' => 'updateableContent'] + ['fieldName' => 'updatableContent'] ); return $metadata; diff --git a/tests/Doctrine/Tests/ORM/Functional/InsertableUpdateableTest.php b/tests/Doctrine/Tests/ORM/Functional/InsertableUpdateableTest.php index 6f9ba36bb0d..3c9d20d40b1 100644 --- a/tests/Doctrine/Tests/ORM/Functional/InsertableUpdateableTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/InsertableUpdateableTest.php @@ -6,10 +6,10 @@ use Doctrine\ORM\Tools\ToolsException; use Doctrine\Tests\Models\Upsertable\Insertable; -use Doctrine\Tests\Models\Upsertable\Updateable; +use Doctrine\Tests\Models\Upsertable\Updatable; use Doctrine\Tests\OrmFunctionalTestCase; -class InsertableUpdateableTest extends OrmFunctionalTestCase +class InsertableUpdatableTest extends OrmFunctionalTestCase { protected function setUp(): void { @@ -18,7 +18,7 @@ protected function setUp(): void try { $this->_schemaTool->createSchema( [ - $this->_em->getClassMetadata(Updateable::class), + $this->_em->getClassMetadata(Updatable::class), $this->_em->getClassMetadata(Insertable::class), ] ); @@ -48,27 +48,27 @@ public function testNotInsertableIsFetchedFromDatabase(): void self::assertEquals('5678', $insertable->nonInsertableContent); } - public function testNotUpdateableIsFetched(): void + public function testNotUpdatableIsFetched(): void { - $updateable = new Updateable(); - $updateable->updateableContent = 'foo'; - $updateable->nonUpdateableContent = 'foo'; + $updatable = new Updatable(); + $updatable->updatableContent = 'foo'; + $updatable->nonUpdatableContent = 'foo'; - $this->_em->persist($updateable); + $this->_em->persist($updatable); $this->_em->flush(); - $updateable->updateableContent = 'bar'; - $updateable->nonUpdateableContent = 'baz'; + $updatable->updatableContent = 'bar'; + $updatable->nonUpdatableContent = 'baz'; $this->_em->flush(); - self::assertEquals('foo', $updateable->nonUpdateableContent); + self::assertEquals('foo', $updatable->nonUpdatableContent); $this->_em->clear(); - $cleanUpdatable = $this->_em->find(Updateable::class, $updateable->id); + $cleanUpdatable = $this->_em->find(Updatable::class, $updatable->id); - self::assertEquals('bar', $cleanUpdatable->updateableContent); - self::assertEquals('foo', $cleanUpdatable->nonUpdateableContent); + self::assertEquals('bar', $cleanUpdatable->updatableContent); + self::assertEquals('foo', $cleanUpdatable->nonUpdatableContent); } } diff --git a/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php b/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php index e5b12c6fea3..c7be9acdc98 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php +++ b/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php @@ -67,7 +67,7 @@ use Doctrine\Tests\Models\TypedProperties\Contact; use Doctrine\Tests\Models\TypedProperties\UserTyped; use Doctrine\Tests\Models\Upsertable\Insertable; -use Doctrine\Tests\Models\Upsertable\Updateable; +use Doctrine\Tests\Models\Upsertable\Updatable; use Doctrine\Tests\OrmTestCase; use function assert; @@ -1137,12 +1137,12 @@ public function testInsertableColumn(): void $this->assertArrayNotHasKey('notInsertable', $metadata->getFieldMapping('insertableContent')); } - public function testUpdateableColumn(): void + public function testUpdatableColumn(): void { - $metadata = $this->createClassMetadata(Updateable::class); + $metadata = $this->createClassMetadata(Updatable::class); - $this->assertArrayHasKey('notUpdateable', $metadata->getFieldMapping('nonUpdateableContent')); - $this->assertArrayNotHasKey('notUpdateable', $metadata->getFieldMapping('updateableContent')); + $this->assertArrayHasKey('notUpdatable', $metadata->getFieldMapping('nonUpdatableContent')); + $this->assertArrayNotHasKey('notUpdatable', $metadata->getFieldMapping('updatableContent')); } } diff --git a/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.Upsertable.Updateable.php b/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.Upsertable.Updatable.php similarity index 67% rename from tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.Upsertable.Updateable.php rename to tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.Upsertable.Updatable.php index cb4bdd2f7db..a3070e02d94 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.Upsertable.Updateable.php +++ b/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.Upsertable.Updatable.php @@ -5,7 +5,7 @@ use Doctrine\ORM\Mapping\ClassMetadataInfo; $metadata->setPrimaryTable( - ['name' => 'updateable_column'] + ['name' => 'updatable_column'] ); $metadata->mapField( @@ -18,10 +18,10 @@ $metadata->mapField( [ - 'fieldName' => 'nonUpdateableContent', - 'notUpdateable' => true, + 'fieldName' => 'nonUpdatableContent', + 'notUpdatable' => true, ] ); $metadata->mapField( - ['fieldName' => 'updateableContent'] + ['fieldName' => 'updatableContent'] ); diff --git a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.Upsertable.Updateable.dcm.xml b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.Upsertable.Updatable.dcm.xml similarity index 67% rename from tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.Upsertable.Updateable.dcm.xml rename to tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.Upsertable.Updatable.dcm.xml index b76c48077a5..f3f8e981dd5 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.Upsertable.Updateable.dcm.xml +++ b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.Upsertable.Updatable.dcm.xml @@ -5,12 +5,12 @@ xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + - - + + diff --git a/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.Models.Upsertable.Updatable.dcm.yml b/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.Models.Upsertable.Updatable.dcm.yml new file mode 100644 index 00000000000..4d07e46b4ab --- /dev/null +++ b/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.Models.Upsertable.Updatable.dcm.yml @@ -0,0 +1,16 @@ +Doctrine\Tests\Models\Upsertable\Updatable: + type: entity + table: updatable_column + id: + id: + generator: + strategy: AUTO + fields: + nonUpdatableContent: + type: string + updatable: false + options: + default: 1234 + updatableContent: + type: string + updatable: true diff --git a/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.Models.Upsertable.Updateable.dcm.yml b/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.Models.Upsertable.Updateable.dcm.yml deleted file mode 100644 index 04c506f2f45..00000000000 --- a/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.Models.Upsertable.Updateable.dcm.yml +++ /dev/null @@ -1,16 +0,0 @@ -Doctrine\Tests\Models\Upsertable\Updateable: - type: entity - table: updateable_column - id: - id: - generator: - strategy: AUTO - fields: - nonUpdateableContent: - type: string - updateable: false - options: - default: 1234 - updateableContent: - type: string - updateable: true \ No newline at end of file