*/
protected $row;
- /**
- * @var string
- */
- protected $name;
-
/**
* @var bool
*/
* @param bool $dirty
*/
function __construct(Row $row, $name, $data, $dirty = false) {
- parent::__construct($data);
+ parent::__construct($name, $data);
$this->row = $row;
- $this->name = $name;
$this->dirty = $dirty;
}
* @return \pq\Gateway\Cell
*/
function mod($data, $op = null) {
+ if (is_string($data)) {
+ $data = $this->row->getTable()->getConnection()->quote($data);
+ }
parent::mod($data, $op);
$this->dirty = true;
return $this;