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