schmittjoh/JMSSerializerBundle — Issue #85: [Enhancement] Properties without setter are read-only
Author: tranver
Created: 2012-02-20 17:05:29+00:00
State: open

When I set the annotation `@Accessor(getter="foo")` on a property I expect this property to be read-only.

Example:

```php
deserialize(
'[{"id":123123,"bundle":"TestBundle","controller":"TestController"}]',
'array',
'json'
);

```

Result:

```
object(ObjectType)[58]
protected 'id' => int 123123
protected 'name' => null
protected 'bundle' => string 'TestBundle' (length=10)
protected 'controller' => string 'TestController' (length=14)
```

I could skip some validation/cleaning logic if `id` is never set by `deserialize`.