{"action":"created","issue":{"url":"https://api.github.com/repos/rinvex/attributes/issues/57","repository_url":"https://api.github.com/repos/rinvex/attributes","labels_url":"https://api.github.com/repos/rinvex/attributes/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/rinvex/attributes/issues/57/comments","events_url":"https://api.github.com/repos/rinvex/attributes/issues/57/events","html_url":"https://github.com/rinvex/attributes/issues/57","id":334204559,"node_id":"MDU6SXNzdWUzMzQyMDQ1NTk=","number":57,"title":"Field 'entity_id' doesn't have a default value","user":{"login":"nguyenvq","id":456170,"node_id":"MDQ6VXNlcjQ1NjE3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/456170?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenvq","html_url":"https://github.com/nguyenvq","followers_url":"https://api.github.com/users/nguyenvq/followers","following_url":"https://api.github.com/users/nguyenvq/following{/other_user}","gists_url":"https://api.github.com/users/nguyenvq/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenvq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenvq/subscriptions","organizations_url":"https://api.github.com/users/nguyenvq/orgs","repos_url":"https://api.github.com/users/nguyenvq/repos","events_url":"https://api.github.com/users/nguyenvq/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenvq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T18:46:59Z","updated_at":"2018-06-20T18:51:50Z","closed_at":null,"author_association":"NONE","body":"Hi Pro,\r\nI using code below for create new attribute.\r\n```\r\napp('rinvex.attributes.attribute')->create([\r\n    'slug' => 'size',\r\n    'type' => 'varchar',\r\n    'name' => 'Product Size',\r\n    'entities' => ['App\\Models\\Company', 'App\\Models\\Product'],\r\n]);\r\n```\r\nbut system show error: \r\n\r\n> SQLSTATE[HY000]: General error: 1364 Field 'entity_id' doesn't have a default value (SQL: insert into `attribute_entity` (`entity_type`, `attribute_id`, `updated_at`, `created_at`) values \r\n\r\nCan help me how to fix it?\r\nThanks"},"comment":{"url":"https://api.github.com/repos/rinvex/attributes/issues/comments/398857871","html_url":"https://github.com/rinvex/attributes/issues/57#issuecomment-398857871","issue_url":"https://api.github.com/repos/rinvex/attributes/issues/57","id":398857871,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODg1Nzg3MQ==","user":{"login":"IsraelOrtuno","id":1769417,"node_id":"MDQ6VXNlcjE3Njk0MTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1769417?v=4","gravatar_id":"","url":"https://api.github.com/users/IsraelOrtuno","html_url":"https://github.com/IsraelOrtuno","followers_url":"https://api.github.com/users/IsraelOrtuno/followers","following_url":"https://api.github.com/users/IsraelOrtuno/following{/other_user}","gists_url":"https://api.github.com/users/IsraelOrtuno/gists{/gist_id}","starred_url":"https://api.github.com/users/IsraelOrtuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IsraelOrtuno/subscriptions","organizations_url":"https://api.github.com/users/IsraelOrtuno/orgs","repos_url":"https://api.github.com/users/IsraelOrtuno/repos","events_url":"https://api.github.com/users/IsraelOrtuno/events{/privacy}","received_events_url":"https://api.github.com/users/IsraelOrtuno/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T18:51:50Z","updated_at":"2018-06-20T18:51:50Z","author_association":"COLLABORATOR","body":"This is a known issue, please use dev-develop branch for now, this is fixed\nthere.\n\n\n\nOn Wed, 20 Jun 2018 at 20:47, Vo Quoc Nguyen <notifications@github.com>\nwrote:\n\n> Hi Pro,\n> I using code below for create new attribute.\n> app('rinvex.attributes.attribute')->create([ 'slug' => 'size', 'type' =>\n> 'varchar', 'name' => 'Product Size', 'entities' => ['App\\Models\\Company',\n> 'App\\Models\\Product'], ]);\n> but system show error:\n>\n> SQLSTATE[HY000]: General error: 1364 Field 'entity_id' doesn't have a\n> default value (SQL: insert into attribute_entity (entity_type,\n> attribute_id, updated_at, created_at) values\n>\n> Can help me how to fix it?\n> Thanks\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/rinvex/attributes/issues/57>, or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABr_yVIVwm9NHgBgv66DpsGP2U_E1yF3ks5t-pikgaJpZM4Uvy1Q>\n> .\n>\n-- \n\nUn saludo\nIsrael Ortuño\n"}}
{"actor":{"display_login":"IsraelOrtuno"}}