comment() public method

Comment will have no effect on query, but will be passed along so data source can log it.
public comment ( string | null $comment = null ) : string | lithium\data\Query
$comment string | null
return string | lithium\data\Query
Example #1
0
 public function testComment()
 {
     $query = new Query($this->_queryArr);
     $expected = 'Find all posts by author 12';
     $result = $query->comment();
     $this->assertEqual($expected, $result);
     $query->comment('Comment lorem');
     $expected = 'Comment lorem';
     $result = $query->comment();
     $this->assertEqual($expected, $result);
 }