Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

findOneBy

1<?php
// A single user by its nickname
$user = $em->getRepository('MyProjectDomainUser')->findOneBy(array('nickname' => 'romanb'));

// A single user by its nickname (__call magic)
$user = $em->getRepository('MyProjectDomainUser')->findOneByNickname('romanb');
Source by www.doctrine-project.org #
 
PREVIOUS NEXT
Tagged: #findOneBy
ADD COMMENT
Topic
Name
2+9 =