1
0
mirror of synced 2025-03-06 21:06:16 +03:00

Updated docs

This commit is contained in:
Javier Spagnoletti 2016-09-07 17:39:51 -03:00 committed by Marco Pivetta
parent a90035e81a
commit bea3c653bc
2 changed files with 52 additions and 52 deletions

View File

@ -733,7 +733,7 @@ Additionally, you can just count the result of the provided conditions when you
<?php
// Check there is no user with nickname
$availableNickname = 0 === $em->getRepository('MyProject\Domain\User')->count(array('nickname' => 'nonexistent'));
$availableNickname = 0 === $em->getRepository('MyProject\Domain\User')->count(['nickname' => 'nonexistent']);
By Criteria
~~~~~~~~~~~

View File

@ -1542,8 +1542,8 @@ deal with it:
.. code-block:: php
<?php
$productCount = $entityManager->getRepository('Product')
->count(array('name' => $productName));
$productCount = $entityManager->getRepository(Product::class)
->count(['name' => $productName]);
Conclusion
----------