public function __set($name, $value) { if ($value instanceof PersistenceModel) { $value = ColumnManager::getColumn(); } else { if (is_string($value)) { $value = preg_replace("/(.)'(.)/i", '$1\\\'$2', $value); } } if (Condition::is_operator($name)) { self::addCondition(Condition::getInstance($name, $this->relation_name, $value)); } else { $fullname = ($this->relation ? "{$this->relation}." : "") . ($this->name ? "{$this->name}." : "") . $name; self::addCondition(Condition::__equ__($fullname, $value)); } }