public function id($name = null)
    {
        if (!$name) {
            $name = 'id';
        }

        $val = $this->connection->expr($this->primary_key_expr);

        $this->args['field'] =
            [$name => $val] + (isset($this->args['field']) ? $this->args['field'] : []);

        return $this;
    }
public function id($name = null)
    {
        if (!$name) {
            $name = 'id';
        }

        $val = $this->connection->expr($this->primary_key_expr);

        $this->args['field'] =
            [$name => $val] + (isset($this->args['field']) ? $this->args['field'] : []);

        return $this;
    }
public function id ( $ name = null ) { if ( ! $ name ) { $ name = 'id' ; } $ val = $ this -> connection -> expr ( $ this -> primary_key_expr ) ; $ this -> args [ 'field' ] = [ $ name => $ val ] + ( isset ( $ this -> args [ 'field' ] ) ? $ this -> args [ 'field' ] : [ ] ) ; return $ this ; }
Add ID field in template.

@param string $name

@return $this
Add ID field in template .