You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
)
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";}";}
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
)
/**
@xmlRoot("package")
@mongodb\Document
*/
class FileRecord
{
/**
/
protected $id;
/*
/
protected $name;
/*
/
protected $url;
/*
/
protected $owner;
/*
/
protected $prefix;
/*
/
protected $dead_date;
/*
*/
protected $created;
}
Thanks,
CG
The text was updated successfully, but these errors were encountered: