public setIsNewRecord ( boolean $value ) | ||
$value | boolean | whether the record is new and should be inserted when calling [[save()]]. |
public function setIsNewRecord($value)
{
$this->_oldAttributes = $value ? null : $this->_attributes;
}