atrauzzi / laravel-serializer

An integration of JMS Serializer with Laravel!
15 stars 12 forks source link

Issue with mapping configuration #5

Open yndlingsfar opened 8 years ago

yndlingsfar commented 8 years ago

There is an issue in /LaravelSerializer/MetadataDriver.php, the configuration from the Readme is not working anymore. e.g. the given configuration

'attributes' => [ 'firstName' ]

fails because in line 82 of MetaDriver.php this is interpreted as $attribute = 0; $attributeConfig = 'firstname' ;

And because of that $class->hasProperty($attribute) returns false (of course)