Created
February 24, 2014 12:54
-
-
Save wouterj/9187869 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Wj\ForumBundle\Document; | |
| use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCR; | |
| use Symfony\Cmf\Component\Routing\RouteReferrersReadInterface; | |
| /** | |
| * @PHPCR\Document(referenceable=true) | |
| */ | |
| class Topic implements RouteReferrersReadInterface | |
| { | |
| // ... | |
| /** | |
| * @PHPCR\Referrers( | |
| * referringDocument="Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route", | |
| * referencedBy="content" | |
| * ) | |
| */ | |
| protected $routes; | |
| // ... | |
| public function getRoutes() | |
| { | |
| return $this->routes; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment