src/Communibase/Connector.php
public function getTemplate($entityType)
    {
        $params = [
            'fields' => 'attributes.title',
            'limit' => 1,
        ];
        $definition = $this->search('EntityType', ['title' => $entityType], $params);

        return array_fill_keys(array_merge(['_id'], array_column($definition[0]['attributes'], 'title')), null);
    }
public function getTemplate($entityType)
    {
        $params = [
            'fields' => 'attributes.title',
            'limit' => 1,
        ];
        $definition = $this->search('EntityType', ['title' => $entityType], $params);

        return array_fill_keys(array_merge(['_id'], array_column($definition[0]['attributes'], 'title')), null);
    }
public function getTemplate ( $ entityType ) { $ params = [ 'fields' => 'attributes.title' , 'limit' => 1 , ] ; $ definition = $ this -> search ( 'EntityType' , [ 'title' => $ entityType ] , $ params ) ; return array_fill_keys ( array_merge ( [ '_id' ] , array_column ( $ definition [ 0 ] [ 'attributes' ] , 'title' ) ) , null ) ; }
Returns an array that has all the fields according to the definition in Communibase.

@param string $entityType

@return array

@throws Exception
Returns an array that has all the fields according to the definition in Communibase .