Skip to content

Commit

Permalink
Merge origin/2.15.x into 3.0.x (using imerge)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Apr 25, 2023
2 parents 7f46fad + a056552 commit 629c600
Show file tree
Hide file tree
Showing 81 changed files with 430 additions and 198 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"symfony/console": "^5.4 || ^6.0"
},
"require-dev": {
"doctrine/coding-standard": "^11.0",
"doctrine/coding-standard": "^12.0",
"phpbench/phpbench": "^1.0",
"phpstan/phpstan": "1.10.6",
"phpstan/phpstan": "1.10.14",
"phpunit/phpunit": "^10.0.14",
"psr/log": "^1 || ^2 || ^3",
"squizlabs/php_codesniffer": "3.7.2",
Expand Down
2 changes: 1 addition & 1 deletion docs/en/reference/attributes-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ Example with partial indexes:
#[Index(name: "search_idx", columns: ["category"],
options: [
"where": "((category IS NOT NULL))"
"where" => "((category IS NOT NULL))"
]
)]
class ECommerceProduct
Expand Down
6 changes: 3 additions & 3 deletions docs/en/reference/metadata-drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ the ``FileDriver`` implementation for you to extend from:
class MyMetadataDriver extends FileDriver
{
/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected $_fileExtension = '.dcm.ext';
/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function loadMetadataForClass($className, ClassMetadata $metadata)
{
Expand All @@ -129,7 +129,7 @@ the ``FileDriver`` implementation for you to extend from:
}
/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected function _loadMappingFile($file)
{
Expand Down
2 changes: 1 addition & 1 deletion docs/en/reference/typedfieldmapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ You need to create a class which implements ``Doctrine\ORM\Mapping\TypedFieldMap
final class CustomEnumTypedFieldMapper implements TypedFieldMapper
{
/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function validateAndComplete(array $mapping, ReflectionProperty $field): array
{
Expand Down
13 changes: 10 additions & 3 deletions doctrine-mapping.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
</xs:choice>
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
<xs:attribute name="type" type="xs:NMTOKEN" default="string" />
<xs:attribute name="type" type="orm:type" default="string" />
<xs:attribute name="column" type="orm:columntoken" />
<xs:attribute name="length" type="xs:NMTOKEN" />
<xs:attribute name="unique" type="xs:boolean" default="false" />
Expand Down Expand Up @@ -362,7 +362,7 @@
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
</xs:choice>
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
<xs:attribute name="type" type="xs:NMTOKEN" />
<xs:attribute name="type" type="orm:type" />
<xs:attribute name="column" type="orm:columntoken" />
<xs:attribute name="length" type="xs:NMTOKEN" />
<xs:attribute name="association-key" type="xs:boolean" default="false" />
Expand Down Expand Up @@ -394,6 +394,13 @@
</xs:restriction>
</xs:simpleType>

<xs:simpleType name="type" id="type">
<xs:restriction base="xs:token">
<xs:pattern value="([a-zA-Z_u01-uff][a-zA-Z0-9_u01-uff]+)|(\c+)" id="type.class.pattern">
</xs:pattern>
</xs:restriction>
</xs:simpleType>

<xs:complexType name="inverse-join-columns">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
Expand Down Expand Up @@ -578,7 +585,7 @@
<xs:element name="options" type="orm:options" minOccurs="0" />
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
</xs:choice>
<xs:attribute name="type" type="xs:NMTOKEN" default="string" />
<xs:attribute name="type" type="orm:type" default="string" />
<xs:attribute name="column" type="orm:columntoken" />
<xs:attribute name="length" type="xs:NMTOKEN" />
<xs:attribute name="unique" type="xs:boolean" default="false" />
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Cache/DefaultCacheFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function buildEntityHydrator(EntityManagerInterface $em, ClassMetadata $m
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getRegion(array $cache): Region
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Cache/DefaultQueryCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function get(QueryCacheKey $key, ResultSetMapping $rsm, array $hints = []): array|null
{
Expand Down Expand Up @@ -196,7 +196,7 @@ public function get(QueryCacheKey $key, ResultSetMapping $rsm, array $hints = []
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function put(QueryCacheKey $key, ResultSetMapping $rsm, mixed $result, array $hints = []): bool
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function get(PersistentCollection $collection, mixed $index): mixed
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function slice(PersistentCollection $collection, int $offset, int|null $length = null): array
{
Expand Down
28 changes: 14 additions & 14 deletions lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function addInsert(object $entity): void
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getInserts(): array
{
Expand Down Expand Up @@ -218,15 +218,15 @@ protected function getHash(
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function expandParameters(array $criteria): array
{
return $this->persister->expandParameters($criteria);
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function expandCriteriaParameters(Criteria $criteria): array
{
Expand All @@ -239,7 +239,7 @@ public function getClassMetadata(): ClassMetadata
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getManyToManyCollection(
AssociationMapping $assoc,
Expand All @@ -251,7 +251,7 @@ public function getManyToManyCollection(
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getOneToManyCollection(
AssociationMapping $assoc,
Expand All @@ -268,7 +268,7 @@ public function getOwningTable(string $fieldName): string
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function executeInserts(): array
{
Expand All @@ -278,7 +278,7 @@ public function executeInserts(): array
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function load(
array $criteria,
Expand Down Expand Up @@ -325,7 +325,7 @@ public function load(
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function loadAll(
array $criteria = [],
Expand Down Expand Up @@ -361,7 +361,7 @@ public function loadAll(
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function loadById(array $identifier, object|null $entity = null): object|null
{
Expand Down Expand Up @@ -418,7 +418,7 @@ public function count(array|Criteria $criteria = []): int
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function loadCriteria(Criteria $criteria): array
{
Expand Down Expand Up @@ -453,7 +453,7 @@ public function loadCriteria(Criteria $criteria): array
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function loadManyToManyCollection(
AssociationMapping $assoc,
Expand Down Expand Up @@ -518,23 +518,23 @@ public function loadOneToManyCollection(
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function loadOneToOneEntity(AssociationMapping $assoc, object $sourceEntity, array $identifier = []): object|null
{
return $this->persister->loadOneToOneEntity($assoc, $sourceEntity, $identifier);
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function lock(array $criteria, LockMode|int $lockMode): void
{
$this->persister->lock($criteria, $lockMode);
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function refresh(array $id, object $entity, LockMode|int|null $lockMode = null): void
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function flush(): void
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function find($className, mixed $id, LockMode|int|null $lockMode = null, int|null $lockVersion = null): object|null
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/EntityManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
interface EntityManagerInterface extends ObjectManager
{
/**
* {@inheritdoc}
* {@inheritDoc}
*
* @psalm-param class-string<T> $className
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/EntityRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function findAll(): array
/**
* Finds entities by a set of criteria.
*
* {@inheritdoc}
* {@inheritDoc}
*
* @psalm-return list<T>
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Id/AssignedGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AssignedGenerator extends AbstractIdGenerator
/**
* Returns the identifier assigned to the given entity.
*
* {@inheritdoc}
* {@inheritDoc}
*
* @throws EntityMissingAssignedId
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function prepare(): void
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected function hydrateAllData(): array
{
Expand All @@ -58,7 +58,7 @@ protected function hydrateAllData(): array
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected function hydrateRowData(array $row, array &$result): void
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected function cleanupAfterRowIteration(): void
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected function hydrateAllData(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
final class ScalarColumnHydrator extends AbstractHydrator
{
/**
* {@inheritdoc}
* {@inheritDoc}
*
* @throws MultipleSelectorsFoundException
* @throws Exception
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Internal/Hydration/ScalarHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ScalarHydrator extends AbstractHydrator
{
/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected function hydrateAllData(): array
{
Expand All @@ -26,7 +26,7 @@ protected function hydrateAllData(): array
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected function hydrateRowData(array $row, array &$result): void
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function cleanup(): void
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected function hydrateAllData(): array
{
Expand All @@ -65,7 +65,7 @@ protected function hydrateAllData(): array
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected function hydrateRowData(array $row, array &$result): void
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Internal/HydrationCompleteHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function deferPostLoadInvoking(ClassMetadata $class, object $entity): voi
}

/**
* This method should me called after any hydration cycle completed.
* This method should be called after any hydration cycle completed.
*
* Method fires all deferred invocations of postLoad events
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Mapping/AnsiQuoteStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getTableName(ClassMetadata $class, AbstractPlatform $platform):
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getSequenceName(array $definition, ClassMetadata $class, AbstractPlatform $platform): string
{
Expand Down Expand Up @@ -58,7 +58,7 @@ public function getJoinTableName(
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getIdentifierColumnNames(ClassMetadata $class, AbstractPlatform $platform): array
{
Expand Down
Loading

0 comments on commit 629c600

Please sign in to comment.