Ошибка (Error): Call to a member function getObjectId() on bool