Last active
June 7, 2017 11:41
-
-
Save rileyrg/29dec3e082e99e69afd68f2d6f292697 to your computer and use it in GitHub Desktop.
This file contains 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
$serializer = $this->container->get('jms_serializer'); | |
$xml=$serializer->serialize($personForm, "xml"); //also for json | |
{"children":{"firstName":{"children":{"condition_pattern":{},"text":{}}},"surname":{"children":{"condition_pattern":{},"text":{}}},"isActor":{},"dateOfBirth":{},"eyeColor":{},"hairColor":{},"adressData":{"children":{"street":{"children":{"condition_pattern":{},"text":{}}},"city":{"children":{"condition_pattern":{},"text":{}}},"country":{}}},"adminAdressData":{"children":{"street":{"children":{"condition_pattern":{},"text":{}}},"city":{"children":{"condition_pattern":{},"text":{}}},"country":{}}}}} | |
<?xml version="1.0" encoding="UTF-8"?> | |
<form name="person_filter"> | |
<errors/> | |
<form name="firstName"> | |
<errors/> | |
<form name="condition_pattern"> | |
<errors/> | |
</form> | |
<form name="text"> | |
<errors/> | |
</form> | |
</form> | |
<form name="surname"> | |
<errors/> | |
<form name="condition_pattern"> | |
<errors/> | |
</form> | |
<form name="text"> | |
<errors/> | |
</form> | |
</form> | |
<form name="isActor"> | |
<errors/> | |
</form> | |
<form name="dateOfBirth"> | |
<errors/> | |
</form> | |
<form name="eyeColor"> | |
<errors/> | |
</form> | |
<form name="hairColor"> | |
<errors/> | |
</form> | |
<form name="adressData"> | |
<errors/> | |
<form name="street"> | |
<errors/> | |
<form name="condition_pattern"> | |
<errors/> | |
</form> | |
<form name="text"> | |
<errors/> | |
</form> | |
</form> | |
<form name="city"> | |
<errors/> | |
<form name="condition_pattern"> | |
<errors/> | |
</form> | |
<form name="text"> | |
<errors/> | |
</form> | |
</form> | |
<form name="country"> | |
<errors/> | |
</form> | |
</form> | |
<form name="adminAdressData"> | |
<errors/> | |
<form name="street"> | |
<errors/> | |
<form name="condition_pattern"> | |
<errors/> | |
</form> | |
<form name="text"> | |
<errors/> | |
</form> | |
</form> | |
<form name="city"> | |
<errors/> | |
<form name="condition_pattern"> | |
<errors/> | |
</form> | |
<form name="text"> | |
<errors/> | |
</form> | |
</form> | |
<form name="country"> | |
<errors/> | |
</form> | |
</form> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment