Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.0BETA1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Mac OS X
Description
I have the following collection named Isboo_Item :
{
"_id": ObjectId("4d3d02fec9fa877d44a36978"),
"author": null,
"backpack": null,
"itemType": 1,
"owner": "4d3cf450b532519765080000",
"place": null,
"quality": null,
"quantity": 1,
"value": null
}
I have a such PHP class :
/**
- @Document(db="Isboona", collection="Isboo_Item")
- */
class Isboo_Item extends Isboo_Db
{
(...)
When I'm trying :
$dm->findOne($collection, array('_id' => $id));
I get :
Fatal error: Uncaught exception 'ReflectionException' with message 'Class 4 does not exist' in /users/developpement/www/library/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php:285
However the same works fine with another collection :
{
"_id": ObjectId("4d3cf450b532519765080000"),
"characs":
,
"name": "Krok",
"position":
,
"refFather":
,
"refMother":
}