lithium\data\model\Query::comment()

public method

Set and get method for current query's comment.

Comment will have no effect on query, but will be passed along so data source can log it.

Parameters

  • string|null $comment

Returns

string|\lithium\data\Query

Source

	public function comment($comment = null) {
		if ($comment) {
			$this->_config['comment'] = $comment;
			return $this;
		}
		return $this->_config['comment'];
	}