default dir *MongoDB* is Document
*in ODM*
-----------------------------------------------------------------------------------------------------
<?php
/**
* User Document
*/
namespace MiEmpresa\MiBundle\Document;
/**
@mongodb:Document(collection="Person")
*/
class Person
-----------------------------------------------------------------------------------------------------
*in ORM*
-----------------------------------------------------------------------------------------------------
<?php
namespace Application\MiBundle\Entity;
/**
* @orm:Entity
*/
class MiSampleClass
{....
-------------------------------------------------------------------------------------------------------
2011/3/23 Diego Henrique Oliveira <[email protected]>
> I am trying to configure MongoDB to work in a different folder from the
> default and would like to know if the following configuration is correct,
> because it is not working as it should.
>
> # Doctrine Configuration
> doctrine_mongo_db:
> document_managers:
> default:
> mappings:
> UserBundle: { type: annotation, dir: Entity/ }
>
>
> this is the error that i got:
>
> Class App\UserBundle\Entity\User is not a valid document or mapped super
> class.
> 500 Internal Server Error - MongoDBException
>
>
> So, anyone can help to find why this configuration is not working?
>
>
> ps.: if i use the default configuration, everything works fine.
>
>
> thanks
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
--
César Hernández
Anzoátegui - Venezuela
[email protected]
LinuxCounter: 285.345
CIV: 122.539
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en