private function FieldCondition($field, $value)
        {
            $tbl = $this->Table();
            $mapper = $this->FieldMapper($field);
            $dbVal = $mapper->ToDBString($value);
            
            $sql = $this->SqlBuilder();
            
            if ($dbVal === null)
                return $sql->IsNull($tbl->Field($field));
            else
                return $sql->Equals($tbl->Field($field), $sql->Value($dbVal));
        }
private function FieldCondition($field, $value)
        {
            $tbl = $this->Table();
            $mapper = $this->FieldMapper($field);
            $dbVal = $mapper->ToDBString($value);
            
            $sql = $this->SqlBuilder();
            
            if ($dbVal === null)
                return $sql->IsNull($tbl->Field($field));
            else
                return $sql->Equals($tbl->Field($field), $sql->Value($dbVal));
        }
private function FieldCondition ( $ field , $ value ) { $ tbl = $ this -> Table ( ) ; $ mapper = $ this -> FieldMapper ( $ field ) ; $ dbVal = $ mapper -> ToDBString ( $ value ) ; $ sql = $ this -> SqlBuilder ( ) ; if ( $ dbVal === null ) return $ sql -> IsNull ( $ tbl -> Field ( $ field ) ) ; else return $ sql -> Equals ( $ tbl -> Field ( $ field ) , $ sql -> Value ( $ dbVal ) ) ; }
Sql condition for matching a field value
@param string $field
@param mixed $value A fitting value type, TableObject or mappable object (e.g. Date)
@return Sql\Condition
Sql condition for matching a field value