public function findOne($idValue, $returnType = Table::RETURN_MODEL) {
        if (is_object($idValue)) {
            $getPK = 'get' . ucfirst(U::_toCamel($this->getPrimaryKey()));
            $idValue = $idValue->$getPK();
        }

        return $this->findOneBy($this->getPrimaryKey(), $idValue, $returnType);
    }
public function findOne($idValue, $returnType = Table::RETURN_MODEL) {
        if (is_object($idValue)) {
            $getPK = 'get' . ucfirst(U::_toCamel($this->getPrimaryKey()));
            $idValue = $idValue->$getPK();
        }

        return $this->findOneBy($this->getPrimaryKey(), $idValue, $returnType);
    }
public function findOne ( $ idValue , $ returnType = Table :: RETURN_MODEL ) { if ( is_object ( $ idValue ) ) { $ getPK = 'get' . ucfirst ( U :: _toCamel ( $ this -> getPrimaryKey ( ) ) ) ; $ idValue = $ idValue -> $ getPK ( ) ; } return $ this -> findOneBy ( $ this -> getPrimaryKey ( ) , $ idValue , $ returnType ) ; }
Finds a row by the id column
@param mixed $idValue
@param int $returnType Indicates the type of return expected.
Possible values (Table::RETURN_MODEL | Table::RETURN_JSON | Table::RETURN_DEFAULT)
@return mixed Null if no row
Finds a row by the id column