public function getByEmail(string $email)
    {
        // get by id and active must by true
        /** @noinspection PhpUndefinedMethodInspection */
        return $this->getList()
            ->where([$this->tableName[0] . '.email' => $email, $this->tableName[0] . '.active' => true])
            ->fetch();
    }
public function getByEmail(string $email)
    {
        // get by id and active must by true
        /** @noinspection PhpUndefinedMethodInspection */
        return $this->getList()
            ->where([$this->tableName[0] . '.email' => $email, $this->tableName[0] . '.active' => true])
            ->fetch();
    }
public function getByEmail ( string $ email ) { // get by id and active must by true /** @noinspection PhpUndefinedMethodInspection */ return $ this -> getList ( ) -> where ( [ $ this -> tableName [ 0 ] . '.email' => $ email , $ this -> tableName [ 0 ] . '.active' => true ] ) -> fetch ( ) ; }
Get by email.

@param string $email
@return \Dibi\Row|false
Get by email .