src/Repositories/UrlRewriteRepository.php
/**
     * 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
     */
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
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
public function findAllByEntityTypeAndEntityId($entityType, $entityId)
    {
        $params = array(
            MemberNames::ENTITY_TYPE => $entityType,
            MemberNames::ENTITY_ID   => $entityId
        );
        foreach ($this->getFinder(SqlStatementKeys::URL_REWRITES_BY_ENTITY_TYPE_AND_ENTITY_ID)->find($params) as $result) {
            yield $result;
        }
    }
public function findAllByEntityTypeAndEntityId ( $ entityType , $ entityId ) { $ params = array ( MemberNames :: ENTITY_TYPE => $ entityType , MemberNames :: ENTITY_ID => $ entityId ) ; foreach ( $ this -> getFinder ( SqlStatementKeys :: URL_REWRITES_BY_ENTITY_TYPE_AND_ENTITY_ID ) -> find ( $ params ) as $ result ) { yield $ result ; } }
Return's an array with the URL rewrites for the passed entity type and ID.
Return ' s an array with the URL rewrites for the passed entity type and ID .
// initialize the params // load and return the URL rewrites