Newscoop\Service\Implementation\SyncResourceServiceDoctrine::findByPath PHP Method

findByPath() public method

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;
    }