Skip to content

Instantly share code, notes, and snippets.

View fsevestre's full-sized avatar
☄️
Vague destructrice de la tortue

Florent SEVESTRE fsevestre

☄️
Vague destructrice de la tortue
View GitHub Profile
@fsevestre
fsevestre / Serializor.php
Created November 20, 2015 22:27 — forked from bubba-h57/Serializor.php
Doctrine 2 Entities Serialized to JSON
<?php
namespace H57\Util;
class Serializor {
/**
* Converts the Doctrine Entity into a JSON Representation
*
* @param object $object The Object (Typically a Doctrine Entity) to convert to an array