Skip to content

Instantly share code, notes, and snippets.

@micheleorselli
Created June 7, 2011 16:05
Show Gist options
  • Save micheleorselli/1012557 to your computer and use it in GitHub Desktop.
Save micheleorselli/1012557 to your computer and use it in GitHub Desktop.
<?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