PHP Class Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm\ContentRepository

This repository follows the pattern of FQN:id. That is, the full model class name, then a colon, then the id. For example "Acme\Content:12". This will only work with single column ids.
Author: teito
Inheritance: extends Symfony\Cmf\Bundle\RoutingBundle\Doctrine\DoctrineProvider, implements Symfony\Cmf\Component\Routing\ContentRepositoryInterface
Mostra file Open project: symfony-cmf/routing-bundle Class Usage Examples

Public Methods

Method Description
findById ( string $id )
getContentId ( $content )

Protected Methods

Method Description
getModelAndId ( mixed $identifier ) : array Determine target class and id for this content.

Method Details

findById() public method

public findById ( string $id )
$id string The ID contains both model name and id, separated by a colon.

getContentId() public method

public getContentId ( $content )

getModelAndId() protected method

Determine target class and id for this content.
protected getModelAndId ( mixed $identifier ) : array
$identifier mixed as produced by getContentId
return array with model first element, id second