I have not been able to understand and correct the problem

I made ​​the following corrections
change the path

MiEmpresa\MiPrimerNOSQLBundle\DataFixtures/ODM
MiEmpresa\MiPrimerNOSQLBundle\DataFixtures/MongoDB


I noticed that the namespace was wrong ...
and now this is the code file

<?php
/**
* User Document
*/
namespace MiEmpresa\MiPrimerNOSQLBundle\Document;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ODM\MongoDB\PersistentCollection;

/**
   @mongodb:Document(collection="Personas")
 */
class Personas
{
    /**
       @mongodb:Id
     */
    protected $id;

    /**
      @mongodb:Field(type="string")
     */
    protected $nombre;

    /**
     * Get id
     *
     * @return integer $id
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set nombre
     *
     * @param string $nombre
     */
    public function setNombre($nombre)
    {
       $this->nombre = $nombre;
    }

    /**
     * Get nombre
     *
     * @return string $nombre
     */
    public function getNombre()
    {
       return $this->nombre;
    }
}

even though I have the problem when I run
php app/console doctrine:mongodb:data:load

PHP Fatal error:  Interface 'Doctrine\Common\Persistence\ObjectManager' not
found in
/var/www/sf2-pr8-02/vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php
on line 49

Fatal error: Interface 'Doctrine\Common\Persistence\ObjectManager' not found
in
/var/www/sf2-pr8-02/vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php
on line 49




El 27 de marzo de 2011 17:30, César Hernández <[email protected]> escribió:

> forget to mention that the vendor has a library folder
> doctrine-common
>
> El 27 de marzo de 2011 17:28, César Hernández <[email protected]>escribió:
>
> Excuse my ignorance ...
>> my autoload.php contains the following code
>>
>> <?php
>>
>> use Symfony\Component\ClassLoader\UniversalClassLoader;
>>
>> $loader = new UniversalClassLoader();
>> $loader->registerNamespaces(array(
>>     'Symfony'          => array(__DIR__.'/../vendor/symfony/src',
>> __DIR__.'/../vendor/bundles'),
>>     'Sensio'           => __DIR__.'/../vendor/bundles',
>>     'JMS'              => __DIR__.'/../vendor/bundles',
>>     'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
>>     'Doctrine\\DBAL'   => __DIR__.'/../vendor/doctrine-dbal/lib',
>>     'Doctrine'         => __DIR__.'/../vendor/doctrine/lib',
>>     'Zend\\Log'        => __DIR__.'/../vendor/zend-log',
>>     'Assetic'          => __DIR__.'/../vendor/assetic/src',
>>
>>     'Doctrine\\MongoDB'          =>
>> __DIR__.'/../vendor/doctrine-mongodb/lib',
>>     'Doctrine\\ODM\\MongoDB'     =>
>> __DIR__.'/../vendor/doctrine-mongodb-odm/lib',
>>      'Acme'             => __DIR__.'/../src',
>>     'MiEmpresa'        => __DIR__.'/../src',
>> ));
>> $loader->registerPrefixes(array(
>>     'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
>>     'Twig_'            => __DIR__.'/../vendor/twig/lib',
>>     'Swift_'           => __DIR__.'/../vendor/swiftmailer/lib/classes',
>> ));
>> $loader->register();
>> $loader->registerPrefixFallback(array(
>>
>> __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs',
>> ));
>>
>> not quite understand what you mean when you say
>> I need the master branch of Doctrine Common
>>
>> 2011/3/27 Christophe COEVOET <[email protected]>
>>
>>> Le 26/03/2011 22:29, César Hernández a écrit :
>>>
>>>  just registered in the autoload ....
>>>>    'Doctrine\\MongoDB'          =>
>>>> __DIR__.'/../vendor/doctrine-mongodb/lib',
>>>>    'Doctrine\\ODM\\MongoDB'     =>
>>>> __DIR__.'/../vendor/doctrine-mongodb-odm/lib',
>>>>
>>>> But it shows me the following messages
>>>>
>>>> PHP Fatal error:  Interface 'Doctrine\Common\Persistence\ObjectManager'
>>>> not found in
>>>> /var/www/sf2-pr8-02/vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php
>>>> on line 49
>>>>
>>>> Fatal error: Interface 'Doctrine\Common\Persistence\ObjectManager' not
>>>> found in
>>>> /var/www/sf2-pr8-02/vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php
>>>> on line 49
>>>>
>>>>
>>>>  You need the master branch of Doctrine Common
>>>
>>>
>>> --
>>> Christophe | Stof
>>>
>>> --
>>> 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
>>
>
>
>
> --
> César Hernández
> Anzoátegui - Venezuela
> [email protected]
>
> LinuxCounter: 285.345
> CIV: 122.539
>



-- 
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

Reply via email to