public function toQueryTag( $cast = false )
    {
        return sprintf(
            '%%%s:%s%s%%',
            $this->name,
            isset($this->data['enumName']) ? 'text' : $this->data['type'],
            $this->data['isNullable'] ? '|null' : '',
            $cast ? 'cast' : ''
        );
    }
public function toQueryTag( $cast = false )
    {
        return sprintf(
            '%%%s:%s%s%%',
            $this->name,
            isset($this->data['enumName']) ? 'text' : $this->data['type'],
            $this->data['isNullable'] ? '|null' : '',
            $cast ? 'cast' : ''
        );
    }
public function toQueryTag ( $ cast = false ) { return sprintf ( '%%%s:%s%s%%' , $ this -> name , isset ( $ this -> data [ 'enumName' ] ) ? 'text' : $ this -> data [ 'type' ] , $ this -> data [ 'isNullable' ] ? '|null' : '' , $ cast ? 'cast' : '' ) ; }
Return a query tag for use in dynamic sql.

@param string $name The name of the element. Key in db->query( ..., array( $name => ... ) );
@param array $dataType. A element of Entity\Base::dataTypes array. Generated by Bond\Normality\Entity::getTypesArray()

@return string
Return a query tag for use in dynamic sql .