Does the command work when nun manually from console?
On Sep 19, 2014 1:21 PM, "mustafa yildirim" <[email protected]>
wrote:

> Hello all,
> I installed latest version of Xammp under c:\
> Then, install composer and doctrine(v2.4.4) via composer.
> I use doctrine with my php project which named mvc.
>
> If i try to list doctrine command via Netbeans 8, i can not see any
> commands. It says that "There is no command available (perhaps error?)" plz
> see => http://tinypic.com/r/x3g5qq/8
>
> What might be the problem?
> Thx, brgds
>
> *my folder structure is:*
>
> *    "C:\xampp\htdocs\vendor\composer"*
> *    "C:\xampp\htdocs\vendor\doctrine"*
> *    "C:\xampp\htdocs\vendor\symfony"*
> *    "C:\xampp\htdocs\vendor\autoload.php"*
> *    "C:\xampp\htdocs\vendor\bin"*
> *    "C:\xampp\htdocs\mvc\"*
> *    "C:\xampp\htdocs\mvc\cli-config.php"*
>
> *    C:\xampp\htdocs\mvc\models\entities\ad*
>
>
> ***cli-config.php***
>
>      <?php
>      require_once "../vendor/autoload.php";
>
>      use Doctrine\ORM\Tools\Setup;
>      use Doctrine\ORM\EntityManager;
>
>      $paths = array("models/entities/ad");
>      $isDevMode = false;
>
>      // the connection configuration
>      $dbParams = array(
>        'driver'  => 'pdo_mysql',
>        'user'   => 'root',
>        'password' => '',
>        'dbname'  => 'test',
>      );
>
>      // Any way to access the EntityManager from your application
>      $config = Setup::createAnnotationMetadataConfiguration($paths,
> $isDevMode);
>      $em = EntityManager::create($dbParams, $config);
>
>     $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)
>     ));
>     return $helperSet;
>
>
> ***Netbeans output:***
>
>     "C:\xampp\htdocs\vendor\bin\doctrine.bat" "--ansi" "list" "--xml"
>      <?xml version="1.0" encoding="UTF-8"?>
>     <symfony name="Doctrine Command Line Interface" version="2.4.4">
>       <commands>
>         <command id="help" name="help">
>           <usage>help [--xml] [--format="..."] [--raw]
> [command_name]</usage>
>           <description>Displays help for a command</description>
>           <help>The &lt;info&gt;help&lt;/info&gt; command displays help
> for a given command:
>
>        &lt;info&gt;php
> C:\xampp\htdocs\vendor\bin\/../doctrine/orm/bin/doctrine help
> list&lt;/info&gt;
>
>      You can also output the help in other formats by using the
> &lt;comment&gt;--format&lt;/comment&gt; option:
>
>        &lt;info&gt;php
> C:\xampp\htdocs\vendor\bin\/../doctrine/orm/bin/doctrine help --format=xml
> list&lt;/info&gt;
>
>      To display the list of available commands, please use the
> &lt;info&gt;list&lt;/info&gt; command.</help>
>           <aliases/>
>           <arguments>
>             <argument name="command_name" is_required="0" is_array="0">
>               <description>The command name</description>
>               <defaults>
>                 <default>help</default>
>               </defaults>
>             </argument>
>           </arguments>
>           <options>
>             <option name="--xml" shortcut="" accept_value="0"
> is_value_required="0" is_multiple="0">
>               <description>To output help as XML</description>
>             </option>
>             <option name="--format" shortcut="" accept_value="1"
> is_value_required="1" is_multiple="0">
>               <description>To output help in other formats</description>
>               <defaults>
>                 <default>txt</default>
>               </defaults>
>             </option>
>             <option name="--raw" shortcut="" accept_value="0"
> is_value_required="0" is_multiple="0">
>               <description>To output raw command help</description>
>             </option>
>             <option name="--help" shortcut="-h" accept_value="0"
> is_value_required="0" is_multiple="0">
>               <description>Display this help message.</description>
>             </option>
>             <option name="--quiet" shortcut="-q" accept_value="0"
> is_value_required="0" is_multiple="0">
>               <description>Do not output any message.</description>
>             </option>
>             <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv"
> accept_value="0" is_value_required="0" is_multiple="0">
>               <description>Increase the verbosity of messages: 1 for
> normal output, 2 for more verbose output and 3 for debug</description>
>             </option>
>             <option name="--version" shortcut="-V" accept_value="0"
> is_value_required="0" is_multiple="0">
>               <description>Display this application version.</description>
>             </option>
>             <option name="--ansi" shortcut="" accept_value="0"
> is_value_required="0" is_multiple="0">
>               <description>Force ANSI output.</description>
>             </option>
>             <option name="--no-ansi" shortcut="" accept_value="0"
> is_value_required="0" is_multiple="0">
>               <description>Disable ANSI output.</description>
>             </option>
>             <option name="--no-interaction" shortcut="-n" accept_value="0"
> is_value_required="0" is_multiple="0">
>               <description>Do not ask any interactive
> question.</description>
>             </option>
>           </options>
>         </command>
>         <command id="list" name="list">
>           <usage>list [--xml] [--raw] [--format="..."] [namespace]</usage>
>           <description>Lists commands</description>
>           <help>The &lt;info&gt;list&lt;/info&gt; command lists all
> commands:
>
>        &lt;info&gt;php
> C:\xampp\htdocs\vendor\bin\/../doctrine/orm/bin/doctrine list&lt;/info&gt;
>     ...
>     Done.
>
> *Here is the IDE log:*
>
>     WARNING [org.netbeans.TopSecurityManager]: use of system property
> netbeans.user has been obsoleted in favor of InstalledFileLocator/Places at
> org.netbeans.processtreekiller.ProcessTreeKiller$Windows.<clinit>(ProcessTreeKiller.java:186)
>     [Fatal Error] :1:7: The processing instruction target matching
> "[xX][mM][lL]" is not allowed.
>     INFO
> [org.netbeans.modules.php.doctrine2.commands.Doctrine2CommandsXmlParser]
>     org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; The
> processing instruction target matching "[xX][mM][lL]" is not allowed.
>     at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)
>     at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
>     [catch] at
> org.netbeans.modules.php.doctrine2.commands.Doctrine2CommandsXmlParser.parse(Doctrine2CommandsXmlParser.java:86)
>     at
> org.netbeans.modules.php.doctrine2.commands.Doctrine2Script.getCommands(Doctrine2Script.java:156)
>     at
> org.netbeans.modules.php.doctrine2.commands.Doctrine2CommandSupport.getFrameworkCommandsInternal(Doctrine2CommandSupport.java:105)
>     at
> org.netbeans.modules.php.spi.framework.commands.FrameworkCommandSupport.refreshFrameworkCommands(FrameworkCommandSupport.java:150)
>     at
> org.netbeans.modules.php.spi.framework.commands.FrameworkCommandSupport$1.run(FrameworkCommandSupport.java:181)
>     at
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
>     at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>     WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid
> shortcut: org.openide.loaders.BrokenDataShadow@4156e2b0
> [MultiFileObject@564e1f6e[Keymaps/NetBeans/D-BACK_QUOTE.shadow]]
>     WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid
> shortcut: org.openide.loaders.BrokenDataShadow@4156e2b0
> [MultiFileObject@564e1f6e[Keymaps/NetBeans/D-BACK_QUOTE.shadow]]
>     [Fatal Error] :1:7: The processing instruction target matching
> "[xX][mM][lL]" is not allowed.
>     INFO
> [org.netbeans.modules.php.doctrine2.commands.Doctrine2CommandsXmlParser]
>     org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; The
> processing instruction target matching "[xX][mM][lL]" is not allowed.
>     at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)
>     at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
>     [catch] at
> org.netbeans.modules.php.doctrine2.commands.Doctrine2CommandsXmlParser.parse(Doctrine2CommandsXmlParser.java:86)
>     at
> org.netbeans.modules.php.doctrine2.commands.Doctrine2Script.getCommands(Doctrine2Script.java:156)
>     at
> org.netbeans.modules.php.doctrine2.commands.Doctrine2CommandSupport.getFrameworkCommandsInternal(Doctrine2CommandSupport.java:105)
>     at
> org.netbeans.modules.php.spi.framework.commands.FrameworkCommandSupport.refreshFrameworkCommands(FrameworkCommandSupport.java:150)
>     at
> org.netbeans.modules.php.spi.framework.commands.FrameworkCommandSupport$1.run(FrameworkCommandSupport.java:181)
>     at
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
>     at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>     [Fatal Error] :1:7: The processing instruction target matching
> "[xX][mM][lL]" is not allowed.
>     INFO
> [org.netbeans.modules.php.doctrine2.commands.Doctrine2CommandsXmlParser]
>     org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; The
> processing instruction target matching "[xX][mM][lL]" is not allowed.
>     at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)
>     at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
>     [catch] at
> org.netbeans.modules.php.doctrine2.commands.Doctrine2CommandsXmlParser.parse(Doctrine2CommandsXmlParser.java:86)
>     at
> org.netbeans.modules.php.doctrine2.commands.Doctrine2Script.getCommands(Doctrine2Script.java:156)
>     at
> org.netbeans.modules.php.doctrine2.commands.Doctrine2CommandSupport.getFrameworkCommandsInternal(Doctrine2CommandSupport.java:105)
>     at
> org.netbeans.modules.php.spi.framework.commands.FrameworkCommandSupport.refreshFrameworkCommands(FrameworkCommandSupport.java:150)
>     at
> org.netbeans.modules.php.spi.framework.commands.FrameworkCommandSupport$1.run(FrameworkCommandSupport.java:181)
>     at
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
>     at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>     INFO
> [org.netbeans.modules.web.clientproject.libraries.CDNJSLibrariesProvider]:
> Reading CDNJS libraries from default bundled file
>
>  --
> 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.
>

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