{"action":"created","issue":{"url":"https://api.github.com/repos/snc/SncRedisBundle/issues/259","repository_url":"https://api.github.com/repos/snc/SncRedisBundle","labels_url":"https://api.github.com/repos/snc/SncRedisBundle/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/snc/SncRedisBundle/issues/259/comments","events_url":"https://api.github.com/repos/snc/SncRedisBundle/issues/259/events","html_url":"https://github.com/snc/SncRedisBundle/issues/259","id":151081664,"number":259,"title":"Metadata caching fails on PHP7 phpredis","user":{"login":"Hast","id":3076280,"avatar_url":"https://avatars.githubusercontent.com/u/3076280?v=3","gravatar_id":"","url":"https://api.github.com/users/Hast","html_url":"https://github.com/Hast","followers_url":"https://api.github.com/users/Hast/followers","following_url":"https://api.github.com/users/Hast/following{/other_user}","gists_url":"https://api.github.com/users/Hast/gists{/gist_id}","starred_url":"https://api.github.com/users/Hast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hast/subscriptions","organizations_url":"https://api.github.com/users/Hast/orgs","repos_url":"https://api.github.com/users/Hast/repos","events_url":"https://api.github.com/users/Hast/events{/privacy}","received_events_url":"https://api.github.com/users/Hast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-04-26T09:06:42Z","updated_at":"2016-04-27T15:23:12Z","closed_at":null,"body":"Ubunti 14.04\r\nSymfony 3.0.4\r\nPHP 7.0.6RC\r\n\r\nConfig:\r\n\r\n```\r\nsnc_redis:\r\n    clients:\r\n        doctrine_cache:\r\n            type: phpredis\r\n            alias: doctrine_cache\r\n            dsn: '%redis_dsn.doctrine_cache%'\r\n    doctrine:\r\n        metadata_cache:\r\n            client: doctrine_cache\r\n            entity_manager: default\r\n        result_cache:\r\n            client: doctrine_cache\r\n            entity_manager: default\r\n        query_cache:\r\n            client: doctrine_cache\r\n            entity_manager: default\r\n```\r\n\r\nRunning command:\r\n\r\n> sudo -u www-data -H php bin/console doctrine:schema:validate --env=prod\r\n\r\nI'm getting an error result:\r\n\r\n```\r\nroot@server:/var/www/dev# sudo -u www-data -H php bin/console doctrine:schema:validate --env=prod\r\n[Mapping]  FAIL - The entity-class 'AppBundle\\Entity\\Subscription' mapping is invalid:\r\n* The association AppBundle\\Entity\\Subscription#order refers to the inverse side field AppBundle\\Entity\\Order#subscription which does not exist.\r\n* The referenced column name 'id' has to be a primary key column on the target entity class 'AppBundle\\Entity\\Order'.\r\n* The join columns of the association 'order' have to match to ALL identifier columns of the target entity 'AppBundle\\Entity\\Order', however '' are missing.\r\n* The referenced column name 'id' has to be a primary key column on the target entity class 'AppBundle\\Entity\\Room'.\r\n* The join columns of the association 'room' have to match to ALL identifier columns of the target entity 'AppBundle\\Entity\\Room', however '' are missing.\r\n* The referenced column name 'id' has to be a primary key column on the target entity class 'AppBundle\\Entity\\Price'.\r\n* The join columns of the association 'subscribedPrice' have to match to ALL identifier columns of the target entity 'AppBundle\\Entity\\Price', however '' are missing.\r\n\r\n  [Doctrine\\ORM\\ORMException]\r\n  Column name `id` referenced for relation from AppBundle\\Entity\\Subscription towards AppBundle\\Entity\\Order does not exist.\r\n```\r\n\r\nWhich is strange, because everything works with PHP 5.6.*, and the mapping looks valid (I use yml). It also works when I turn off the caching.\r\n\r\nMapping:\r\n```\r\nAppBundle\\Entity\\Subscription:\r\n    type:  entity\r\n    table: subscription\r\n    repositoryClass: AppBundle\\Repository\\SubscriptionRepository\r\n    id:\r\n        id:\r\n            type: integer\r\n            generator:\r\n                strategy: AUTO\r\n    oneToOne:\r\n        order:\r\n            inversedBy: subscription\r\n            targetEntity: Order\r\n\r\nAppBundle\\Entity\\Order:\r\n    type: entity\r\n    table: orders\r\n    id:\r\n        id:\r\n            type: integer\r\n            id: true\r\n            generator:\r\n                strategy: AUTO\r\n    oneToOne:\r\n        subscription:\r\n            mappedBy: order\r\n            targetEntity: Subscription\r\n```"},"comment":{"url":"https://api.github.com/repos/snc/SncRedisBundle/issues/comments/215119257","html_url":"https://github.com/snc/SncRedisBundle/issues/259#issuecomment-215119257","issue_url":"https://api.github.com/repos/snc/SncRedisBundle/issues/259","id":215119257,"user":{"login":"Hast","id":3076280,"avatar_url":"https://avatars.githubusercontent.com/u/3076280?v=3","gravatar_id":"","url":"https://api.github.com/users/Hast","html_url":"https://github.com/Hast","followers_url":"https://api.github.com/users/Hast/followers","following_url":"https://api.github.com/users/Hast/following{/other_user}","gists_url":"https://api.github.com/users/Hast/gists{/gist_id}","starred_url":"https://api.github.com/users/Hast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hast/subscriptions","organizations_url":"https://api.github.com/users/Hast/orgs","repos_url":"https://api.github.com/users/Hast/repos","events_url":"https://api.github.com/users/Hast/events{/privacy}","received_events_url":"https://api.github.com/users/Hast/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T15:23:12Z","updated_at":"2016-04-27T15:23:12Z","body":"@Pouix Got it. So is there a chance you can fix the issue for php7 with enabled igbinary?"}}