for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rottenwood\KingdomBundle\Entity\Infrastructure;
use Rottenwood\KingdomBundle\Entity\Money;
/** {@inheritDoc} */
class MoneyRepository extends AbstractRepository
{
/**
* @param User|int $userId
* @return Money|null
*/
public function findOneByUser($userId)
return $this->findOneBy(['user' => $userId]);
}