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\EntityManagergetMaxRecursionDepth() : int
intsetEntityManager(\Doctrine\ORM\EntityManager $em)
setMaxRecursionDepth(int $maxRecursionDepth) : void
int
toArray(\The $entity) : array
\Theentity $entity
arraytoJson(\The $entity) : string
\Theentity $entity
stringtoXml(\The $entity)
_serializeEntity($entity)
$_em : \Doctrine\ORM\EntityManager
$_maxRecursionDepth : int
$_recursionDepth : int