{"issue":{"title":"add a depth exclusion strategy","user":{"login":"lsmith77","id":300279,"url":"https://api.github.com/users/lsmith77","avatar_url":"https://secure.gravatar.com/avatar/54787afbd0e7c30936101c2fa84bd89b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"54787afbd0e7c30936101c2fa84bd89b"},"created_at":"2011-12-18T12:53:33Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-29T04:08:40Z","id":2593298,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"html_url":"https://github.com/schmittjoh/JMSSerializerBundle/issues/61","body":"to make it possible to dynamically configure the depth of the serialization of a given object graph","number":61,"url":"https://api.github.com/repos/schmittjoh/JMSSerializerBundle/issues/61","comments":3,"assignee":null},"comment":{"user":{"login":"sliver","id":6036,"url":"https://api.github.com/users/sliver","avatar_url":"https://secure.gravatar.com/avatar/eceebbc60e8af37fd87d85a867e019fd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"eceebbc60e8af37fd87d85a867e019fd"},"created_at":"2011-12-29T04:08:40Z","updated_at":"2011-12-29T04:08:40Z","id":3297955,"body":"I'm using doctrine for object mapping. If there is an object with many-to-one association, it only need the id come from the other side in the most situation.\r\n\r\n```php\r\nclass User \r\n{\r\n    /**\r\n     * @var User\r\n     *\r\n     * @ORM\\ManyToOne(targetEntity=\"User\")\r\n     * @ORM\\JoinColumn(name=\"parent_id\",\r\n     *     referencedColumnName=\"id\")\r\n     */\r\n    private $parent;\r\n}\r\n```\r\n\r\nThis is an example for many-to-one self referencing. After serializing this object, expect result should be:\r\n\r\n```json\r\n{\r\n    \"parent_id\": 1000\r\n}\r\n```","url":"https://api.github.com/repos/schmittjoh/JMSSerializerBundle/issues/comments/3297955"},"action":"created"}