Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined offset: 14 in JMS/SerializerBundle/Metadata/PropertyMetadata.php line 110 #97

Closed
cgwin opened this issue Mar 22, 2012 · 3 comments

Comments

@cgwin
Copy link

cgwin commented Mar 22, 2012

I keep getting this error Undefined offset: 14 in vendor/bundles/JMS/SerializerBundle/Metadata/PropertyMetadata.php line 110 I have tried removing numerous fields from my model but no luck. Here is what I am trying to serialize.
(
[id:protected] => 4f6b899196acb81b17000006
[name:protected] => Test File
[url:protected] =>
[owner:protected] => BIMFS
[prefix:protected] => None
[dead_date:protected] =>
[created:protected] => 2012-03-22T15:20:33-05:00
)

/**

Thanks,
CG

@cgwin
Copy link
Author

cgwin commented Mar 23, 2012

If I print out the str var from deserialize I get this
a:14:{i:0;N;i:1;N;i:2;N;i:3;N;i:4;b:0;i:5;b:0;i:6;N;i:7;N;i:8;b:0;i:9;b:0;i:10;N;i:11;N;i:12;b:0;i:13;s:66:"a:2:{i:0;s:35:"BIM\BimfsBundle\Document\FileRecord";i:1;s:2:"id";}";}

@mvrhov
Copy link
Contributor

mvrhov commented Mar 23, 2012

This usually means, that you forgot to clear the cache after you updated the vendors.

@cgwin
Copy link
Author

cgwin commented Mar 26, 2012

That seems to be the case. Thanks for the help :)

@cgwin cgwin closed this as completed Mar 26, 2012
chasewoo pushed a commit to royuan/JMSSerializerBundle that referenced this issue Aug 7, 2013
Fix discriminator map search in ClassMetadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants