{"action":"opened","issue":{"url":"https://api.github.com/repos/arrilot/bitrix-models/issues/15","repository_url":"https://api.github.com/repos/arrilot/bitrix-models","labels_url":"https://api.github.com/repos/arrilot/bitrix-models/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/arrilot/bitrix-models/issues/15/comments","events_url":"https://api.github.com/repos/arrilot/bitrix-models/issues/15/events","html_url":"https://github.com/arrilot/bitrix-models/issues/15","id":299314359,"number":15,"title":"Object initialization failed","user":{"login":"artempisarev","id":2216564,"avatar_url":"https://avatars1.githubusercontent.com/u/2216564?v=4","gravatar_id":"","url":"https://api.github.com/users/artempisarev","html_url":"https://github.com/artempisarev","followers_url":"https://api.github.com/users/artempisarev/followers","following_url":"https://api.github.com/users/artempisarev/following{/other_user}","gists_url":"https://api.github.com/users/artempisarev/gists{/gist_id}","starred_url":"https://api.github.com/users/artempisarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artempisarev/subscriptions","organizations_url":"https://api.github.com/users/artempisarev/orgs","repos_url":"https://api.github.com/users/artempisarev/repos","events_url":"https://api.github.com/users/artempisarev/events{/privacy}","received_events_url":"https://api.github.com/users/artempisarev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-22T11:17:32Z","updated_at":"2018-02-22T11:17:32Z","closed_at":null,"author_association":"NONE","body":"**Иногда на разных машинах получение элементов из БД падает с ошибкой:**\r\n\r\n[LogicException] \r\nObject initialization failed (0)\r\n/var/www/artem/data/www/mysite.ru/local/vendor/arrilot/bitrix-models/src/Models/BitrixModel.php:218\r\n#0: Arrilot\\BitrixModels\\Models\\BitrixModel::instantiateObject()\r\n\t/var/www/artem/data/www/mysite.ru/local/vendor/arrilot/bitrix-models/src/Models/ElementModel.php:136\r\n#1: Arrilot\\BitrixModels\\Models\\ElementModel::query()\r\n\t/var/www/artem/data/www/mysite.ru/local/vendor/arrilot/bitrix-models/src/Models/BaseBitrixModel.php:274\r\n#2: Arrilot\\BitrixModels\\Models\\BaseBitrixModel::__callStatic(string, array)\r\n\t/var/www/artem/data/www/mysite.ru/local/classes/Myhelp.php:54\r\n#3: Artem\\Myhelp->isPromotion(string)\r\n\t/var/www/artem/data/www/mysite.ru/local/templates/vabank_map/components/bitrix/news.detail/guides/component_epilog.php:85\r\n#4: include(string)\r\n\t/var/www/artem/data/www/mysite.ru/bitrix/modules/main/classes/general/component.php:1398\r\n#5: CBitrixComponent->includeComponentEpilog(array)\r\n\t/var/www/artem/data/www/mysite.ru/bitrix/modules/main/classes/general/component.php:965\r\n#6: CBitrixComponent->startResultCache(integer, array)\r\n\t/var/www/artem/data/www/mysite.ru/bitrix/components/bitrix/news.detail/component.php:137\r\n#7: include(string)\r\n\t/var/www/artem/data/www/mysite.ru/bitrix/modules/main/classes/general/component.php:551\r\n#8: CBitrixComponent->__includeComponent()\r\n\t/var/www/artem/data/www/mysite.ru/bitrix/modules/main/classes/general/component.php:603\r\n#9: CBitrixComponent->includeComponent(string, array, NULL)\r\n\t/var/www/artem/data/www/mysite.ru/bitrix/modules/main/classes/general/main.php:1041\r\n#10: CAllMain->IncludeComponent(string, string, array)\r\n\t/var/www/artem/data/www/mysite.ru/guides/index.php:55\r\n#11: include_once(string)\r\n\t/var/www/artem/data/www/mysite.ru/bitrix/modules/main/include/urlrewrite.php:159\r\n#12: include_once(string)\r\n\t/var/www/artem/data/www/mysite.ru/bitrix/urlrewrite.php:2\r\n\r\n**Функция в которой происходит вызов:**\r\n```\r\n    public function isPromotion($qid)\r\n    {\r\n        $res = \\Questions::select('PROPERTY_PROMODATE')->getById($qid);\r\n        return $res['PROPERTY_PROMODATE_VALUE'];\r\n     }\r\n```"}}
{"actor":{"display_login":"artempisarev"}}