Created
June 7, 2011 16:05
-
-
Save micheleorselli/1012557 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 Doctrine\ODM\PHPCR\Document; | |
use Doctrine\ODM\PHPCR\Mapping\Annotations as ODM; | |
/** | |
* This class represents a JCR file, aka nt:file. | |
* @ see http://wiki.apache.org/jackrabbit/nt:file | |
* | |
* @ODM\Document(alias="file", nodeType="nt:file") | |
*/ | |
class File | |
{ | |
/** @ODM\Id */ | |
protected $id; | |
/** @ODM\Node */ | |
protected $node; | |
/** @ODM\Date(name="jcr:created") */ | |
protected $created; | |
/** @ODM\String(name="jcr:createdBy") */ | |
protected $createdBy; | |
/** @ODM\Child(name="jcr:content") */ | |
protected $content; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment