src/php/main/Eix/Services/Data/Responders/CollectionManager.php
public function getEntityData()
    {
        $entity = null;
        try {
            $entity = $this->getEntity(
                    $this->getRequest()->getParameter('id')
            );
        } catch (NotFoundException $exception) {
            // The entity does not exist, create a new one from the data in the
            // request.
            $entity = $this->getEntityClass()->newInstanceArgs(
                    $this->getEntityDataFromRequest()
            );
        }

        return $entity->getFieldsData();
    }
public function getEntityData()
    {
        $entity = null;
        try {
            $entity = $this->getEntity(
                    $this->getRequest()->getParameter('id')
            );
        } catch (NotFoundException $exception) {
            // The entity does not exist, create a new one from the data in the
            // request.
            $entity = $this->getEntityClass()->newInstanceArgs(
                    $this->getEntityDataFromRequest()
            );
        }

        return $entity->getFieldsData();
    }
public function getEntityData ( ) { $ entity = null ; try { $ entity = $ this -> getEntity ( $ this -> getRequest ( ) -> getParameter ( 'id' ) ) ; } catch ( NotFoundException $ exception ) { // The entity does not exist, create a new one from the data in the // request. $ entity = $ this -> getEntityClass ( ) -> newInstanceArgs ( $ this -> getEntityDataFromRequest ( ) ) ; } return $ entity -> getFieldsData ( ) ; }
Gets the current entity's data so that it can be set into the request.
Gets the current entity s data so that it can be set into the request .