I am having the same issue on Windows 7 Platform. I have asked this 
question on StackOverflow but never got an answer.... can someone please 
help.......

On Saturday, August 10, 2013 5:57:51 PM UTC+2, Mahmud Kasaei wrote:
>
> hello.
> when i run php vendor/bin/doctrine in root of project to see available 
> commad i see following error:
>
> SRC_DIR="`pwd`"
> cd "`dirname "$0"`"
> cd "../doctrine/orm/bin"
> BIN_TARGET="`pwd`/doctrine"
> cd "$SRC_DIR"
> "$BIN_TARGET" "$@"
>
>
> ------------------------------------------------------------------------------------------------------------------
>  my cli-config.php is :
>
> <?php
> // cli-config.php
> require_once 'bootstrap.php';
>
> // Any way to access the EntityManager from  your application
> $em = GetMyEntityManager();
>
> $helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(
>     'db' => new 
> \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em->getConnection()),
>     'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em)
> ));
> // $cli->setHelperSet($helperSet);
>
> -----------------------------------------------------------------------
> and  bootstrap.php is :
> <?php
> // bootstrap.php
> use Doctrine\ORM\Tools\Setup;
> use Doctrine\ORM\EntityManager;
>
> require_once "vendor/autoload.php";
>
> // Create a simple "default" Doctrine ORM configuration for Annotations
> $isDevMode = true;
> $config = 
> Setup::createAnnotationMetadataConfiguration(array(__DIR__."/src"), 
> $isDevMode);
> // or if you prefer yaml or XML
> //$config = 
> Setup::createXMLMetadataConfiguration(array(__DIR__."/config/xml"), 
> $isDevMode);
> //$config = 
> Setup::createYAMLMetadataConfiguration(array(__DIR__."/config/yaml"), 
> $isDevMode);
>
> // database configuration parameters
> $conn = array(
>     'dbname' => 'doctrinedb',
>     'user' => 'doctrine',
>     'password' => 'test',
>     'host' => 'localhost',
>     'driver' => 'pdo_mysql',
> );
> // obtaining the entity manager
> $entityManager = EntityManager::create($conn, $config);
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> please somebody help me.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to