public function tryLoadBy($field, $cond = UNDEFINED, $value = UNDEFINED)
    {
        $q = $this->dsql;
        $this->dsql = $this->dsql();
        $this->addCondition($field, $cond, $value);
        $this->tryLoadAny();
        $this->dsql = $q;

        return $this;
    }
public function tryLoadBy($field, $cond = UNDEFINED, $value = UNDEFINED)
    {
        $q = $this->dsql;
        $this->dsql = $this->dsql();
        $this->addCondition($field, $cond, $value);
        $this->tryLoadAny();
        $this->dsql = $q;

        return $this;
    }
public function tryLoadBy ( $ field , $ cond = UNDEFINED , $ value = UNDEFINED ) { $ q = $ this -> dsql ; $ this -> dsql = $ this -> dsql ( ) ; $ this -> addCondition ( $ field , $ cond , $ value ) ; $ this -> tryLoadAny ( ) ; $ this -> dsql = $ q ; return $ this ; }
Attempt to load using a specified condition, but will not fail if such record is not found
Attempt to load using a specified condition but will not fail if such record is not found