Newscoop\Service\Implementation\SyncResourceServiceDoctrine::findByPath PHP 메소드

findByPath() 공개 메소드

public findByPath ( $path )
    function findByPath($path)
    {
        Validation::notEmpty($path, 'path');
        $em = $this->getManager();
        $resources = $em->getRepository($this->entityClassName)->findByPath($path);
        if (isset($resources) && count($resources) > 0) {
            return $resources[0];
        }
        return NULL;
    }