public function getEntityArrayValues($entity)
    {
        $values = [];
        $properties = $this->getEntityProperties($entity);
        $metadata = $this->em->getClassMetadata(get_class($entity));
        foreach ($properties as $property) {
            $values[$property] = $metadata->getFieldValue($entity, $property);
        }
        return $values;
    }
public function getEntityArrayValues($entity)
    {
        $values = [];
        $properties = $this->getEntityProperties($entity);
        $metadata = $this->em->getClassMetadata(get_class($entity));
        foreach ($properties as $property) {
            $values[$property] = $metadata->getFieldValue($entity, $property);
        }
        return $values;
    }
public function getEntityArrayValues ( $ entity ) { $ values = [ ] ; $ properties = $ this -> getEntityProperties ( $ entity ) ; $ metadata = $ this -> em -> getClassMetadata ( get_class ( $ entity ) ) ; foreach ( $ properties as $ property ) { $ values [ $ property ] = $ metadata -> getFieldValue ( $ entity , $ property ) ; } return $ values ; }
Returns default values for forms
@param type $entity
@return array
Returns default values for forms