lib/Webforge/ProjectStack/Symfony/Form/Transformer/DoctrineEntityTransformer.php
public function transform($entity) {
    if ($entity === NULL) {
      return NULL;
    }

    $getter = 'get'.ucfirst($this->identifierName);

    return array(
      '__class' => $this->entityClass, // just for verbose
      $this->identifierName => $entity->$getter()
    );
  }
public function transform($entity) {
    if ($entity === NULL) {
      return NULL;
    }

    $getter = 'get'.ucfirst($this->identifierName);

    return array(
      '__class' => $this->entityClass, // just for verbose
      $this->identifierName => $entity->$getter()
    );
  }
public function transform ( $ entity ) { if ( $ entity === NULL ) { return NULL ; } $ getter = 'get' . ucfirst ( $ this -> identifierName ) ; return array ( '__class' => $ this -> entityClass , // just for verbose $ this -> identifierName => $ entity -> $ getter ( ) ) ; }
Transforms an entity to its json object
Transforms an entity to its json object