src/Repositories/UrlRewriteRepository.php
public function findAllByEntityTypeAndEntityId($entityType, $entityId)
    {

        // initialize the params
        $params = array(
            MemberNames::ENTITY_TYPE => $entityType,
            MemberNames::ENTITY_ID   => $entityId
        );

        // load and return the URL rewrites
        $this->urlRewritesByEntityTypeAndEntityIdStmt->execute($params);
        return $this->urlRewritesByEntityTypeAndEntityIdStmt->fetchAll(\PDO::FETCH_ASSOC);
    }
public function findAllByEntityTypeAndEntityId($entityType, $entityId)
    {

        // initialize the params
        $params = array(
            MemberNames::ENTITY_TYPE => $entityType,
            MemberNames::ENTITY_ID   => $entityId
        );

        // load and return the URL rewrites
        $this->urlRewritesByEntityTypeAndEntityIdStmt->execute($params);
        return $this->urlRewritesByEntityTypeAndEntityIdStmt->fetchAll(\PDO::FETCH_ASSOC);
    }
Return's an array with the URL rewrites for the passed entity type and ID.

@param string  $entityType The entity type to load the URL rewrites for
@param integer $entityId   The entity ID to load the URL rewrites for

@return array The URL rewrites