Wants to convert doctrine entiry object to normal array, this is my code so far,
$demo = $this->doctrine->em->find(\'Entity\\User\',2);
If you just need to access a single value, you can also do this...
If 'personType' were an object and you wanted the value of the relationship...
$personTypeId = $form->get('personType')->getViewData();