A Doctrine2 Entity Serializer
Based on:
link | is licensed under http://sam.zoy.org/wtfpl/COPYING. This is turn was based on the Gist: |
---|---|
link | https://gist.github.com/1034079#file_serializable_entity.php |
category | OSS |
package | OSS_Doctrine2 |
copyright | Copyright (c) 2007 - 2013, Open Source Solutions Limited, Dublin, Ireland |
license | New BSD License |
__construct($em)
getEntityManager() : \Doctrine\ORM\EntityManager
\Doctrine\ORM\EntityManager
getMaxRecursionDepth() : int
int
setEntityManager(\Doctrine\ORM\EntityManager $em)
setMaxRecursionDepth(int $maxRecursionDepth) : void
int
toArray(\The $entity) : array
\The
entity $entity
array
toJson(\The $entity) : string
\The
entity $entity
string
toXml(\The $entity)
_serializeEntity($entity)
$_em : \Doctrine\ORM\EntityManager
$_maxRecursionDepth : int
$_recursionDepth : int