public function getChildForName($name)
    {
        $criteria = Criteria::create()
            ->where(Criteria::expr()->eq('name', $name))
        ;

        return $this->getChildren()->matching($criteria)->first();
    }
public function getChildForName($name)
    {
        $criteria = Criteria::create()
            ->where(Criteria::expr()->eq('name', $name))
        ;

        return $this->getChildren()->matching($criteria)->first();
    }
public function getChildForName ( $ name ) { $ criteria = Criteria :: create ( ) -> where ( Criteria :: expr ( ) -> eq ( 'name' , $ name ) ) ; return $ this -> getChildren ( ) -> matching ( $ criteria ) -> first ( ) ; }
Get a child account by name

@author Tom Haskins-Vaughan <tom@tomhv.uk>
@since  0.8.0

@param  string $name

@return Account
Get a child account by name