File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
309309before the removal, except for generated identifiers.
310310
311311Removing an entity will also automatically delete any existing
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ The DQL Snippet in OrderBy is only allowed to consist of
7676unqualified, unquoted field names and of an optional ASC/DESC
7777positional statement. Multiple Fields are separated by a comma (,).
7878The 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
8181The semantics of this feature can be described as follows:
8282
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments