public function requireOne($db = null)
    {
        if (null === ($record = $this->one($db))) {
            throw new RecordNotFoundException(
                sprintf(
                    "Record not found."
                )
            );
        }

        return $record;
    }