schmittjoh/JMSSerializerBundle — Issue #72: Error in circular references (function nesting level of '100' reached)
Author: joanteixido
Created: 2012-02-01 22:10:51+00:00
State: open

Hello,

i'm not sure if this is the correct place to comment this issue. I will try to explain the problem:
I've a User class with followers and people to follow throught another class (Follow entity). In follow entity there're of courser references to User entity... There're more entites related like Follow entity in my model... so... when i try to serialize it I get an error (function nesting level...) due (i supose) to the circular references.

I see in documentation that this bundle can handle with circular references of objects so I supose that I have some problem. Here is the example in pseudoPHP on my controller:

```php
$user = entitityRepository->find(1);
$serializer = $this->get('serializer');
$json = $serializer->serialize($drawers, 'json');
```
...error... :(