Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1edfa91

Browse files
authored
Merge 2.13.x into 2.14.x (doctrine#10181)
2 parents c828a38 + 75e42ab commit 1edfa91

6 files changed

Lines changed: 11 additions & 5 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"doctrine/annotations": "^1.13",
4343
"doctrine/coding-standard": "^9.0.2 || ^10.0",
4444
"phpbench/phpbench": "^0.16.10 || ^1.0",
45-
"phpstan/phpstan": "~1.4.10 || 1.8.8",
45+
"phpstan/phpstan": "~1.4.10 || 1.8.11",
4646
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
4747
"psr/log": "^1 || ^2 || ^3",
4848
"squizlabs/php_codesniffer": "3.7.1",

docs/en/reference/advanced-configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The attribute driver can be injected in the ``Doctrine\ORM\Configuration``:
132132
.. code-block:: php
133133
134134
<?php
135-
use Doctrine\ORM\ORMSetup;
135+
use Doctrine\ORM\Mapping\Driver\AttributeDriver;
136136
137137
$driverImpl = new AttributeDriver(['/path/to/lib/MyProject/Entities']);
138138
$config->setMetadataDriverImpl($driverImpl);

docs/en/reference/query-builder.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,12 @@ complete list of supported helper methods available:
434434
// Example - $qb->expr()->isNotNull('u.id') => u.id IS NOT NULL
435435
public function isNotNull($x); // Returns string
436436
437+
// Example - $qb->expr()->isMemberOf('?1', 'u.groups') => ?1 MEMBER OF u.groups
438+
public function isMemberOf($x, $y); // Returns Expr\Comparison instance
439+
440+
// Example - $qb->expr()->isInstanceOf('u', Employee::class) => u INSTANCE OF Employee
441+
public function isInstanceOf($x, $y); // Returns Expr\Comparison instance
442+
437443
438444
/** Arithmetic objects **/
439445

docs/en/reference/working-with-objects.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ as follows:
305305
- A removed entity X will be removed from the database as a result
306306
of the flush operation.
307307

308-
After an entity has been removed its in-memory state is the same as
308+
After an entity has been removed, its in-memory state is the same as
309309
before the removal, except for generated identifiers.
310310

311311
Removing an entity will also automatically delete any existing

docs/en/tutorials/ordered-associations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The DQL Snippet in OrderBy is only allowed to consist of
7676
unqualified, unquoted field names and of an optional ASC/DESC
7777
positional statement. Multiple Fields are separated by a comma (,).
7878
The referenced field names have to exist on the ``targetEntity``
79-
class of the ``#[ManyToMany]`` or ``#[OneToMany]`` annotation.
79+
class of the ``#[ManyToMany]`` or ``#[OneToMany]`` attribute.
8080

8181
The semantics of this feature can be described as follows:
8282

lib/Doctrine/ORM/Events.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private function __construct()
8282

8383
/**
8484
* The loadClassMetadata event occurs after the mapping metadata for a class
85-
* has been loaded from a mapping source (annotations/xml/yaml).
85+
* has been loaded from a mapping source (attributes/xml/yaml).
8686
*/
8787
public const loadClassMetadata = 'loadClassMetadata';
8888

0 commit comments

Comments
 (0)