[PHPCR-117] cp Created: 21/Dec/13  Updated: 15/Feb/14  Resolved: 15/Feb/14

Status: Closed
Project: Doctrine PHPCR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Roger Mbiama Assogo Assignee: Lukas Kahwe
Resolution: Incomplete Votes: 0
Labels: oracle


Attachments: File CGI.pm    


final class PhpParser

  • Parses a class.
  • @param \ReflectionClass $class A <code>ReflectionClass</code> object.
  • @return array A list with use statements in the form (Alias => FQN).
    public function parseClass(\ReflectionClass $class)
    if (method_exists($class, 'getUseStatements')) { return $class->getUseStatements(); }

if (false === $filename = $class->getFilename())

{ return array(); }

$content = $this->getFileContent($filename, $class->getStartLine());

if (null === $content) { return array(); }

$namespace = preg_quote($class->getNamespaceName());
$content = preg_replace('/^.?(\bnamespace\s+' . $namespace . '\s[;

{].*)$/s', '\\1', $content); $tokenizer = new TokenParser('<?php ' . $content); $statements = $tokenizer->parseUseStatements($class->getNamespaceName()); return $statements; }


  • Get the content of the file right up to the given line number.
  • @param string $filename The name of the file to load.
  • @param int $lineNumber The number of lines to read from file.
  • @return string The content of the file.
    private function getFileContent($filename, $lineNumber)
    if ( ! is_file($filename)) { return null; }

$content = '';
$lineCnt = 0;
$file = new SplFileObject($filename);
while (!$file->eof()) {
if ($lineCnt++ == $lineNumber)

{ break; }

$content .= $file->fgets();

return $content;

[DWEB-120] doctrine-bundle Created: 27/Jul/14  Updated: 27/Jul/14

Status: Open
Project: Doctrine Website
Component/s: Extensions
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Roger Mbiama Assogo Assignee: Jonathan H. Wage
Resolution: Unresolved Votes: 0
Labels: oracle

Index of /AWS/index3.php/vendor/doctrine/doctrine-bundle/Doctrine/Bundle/DoctrineBund

Attachments: GZip Archive business_6b40a358628ab648b07cf155b1e8725e.tar.gz     File root-anchors.p7s    


WEB vendeur

[DC-946] Oracle Doctrine_RawSql()->count() generates illegal SQL Created: 08/Dec/10  Updated: 06/Aug/12

Status: Open
Project: Doctrine 1
Component/s: Native SQL
Affects Version/s: 1.2.3
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Lars Pohlmann Assignee: Roman S. Borschel
Resolution: Unresolved Votes: 0
Labels: oracle


Example RawSQL:

$q = new Doctrine_RawSql();
          ->from('SHP_MANDANT_KATEGORIE k')
          ->addComponent('k', 'ShpMandantKategorie k')
          ->where( 'k.id_mandant=' . $this->getIdMandant() )
          ->andWhere( 'k.id_parent=' . $this->getIdMandantkategorie() )
          ->andWhere( 'k.aktiv=1' )
          ->orderBy( 'k.sortorder' ); 

$q->count() generates:

SELECT COUNT(*) as num_results 
FROM (SELECT DISTINCT k.id_mandantkategorie 
              WHERE k.id_mandant=2 AND k.id_parent=1520 AND k.aktiv=1) as results

The illegal Part ist the "as results" at the end...

Comment by Lars Pohlmann [ 06/Aug/12 ]


will this ever be corrected?
I just came across the same bug in another project...

[DBAL-367] Reverse engnering do not work with Oracle DB Created: 18/Oct/12  Updated: 21/Nov/13  Resolved: 21/Nov/13

Status: Resolved
Project: Doctrine DBAL
Component/s: Drivers, Schema Managers
Affects Version/s: 2.3
Fix Version/s: 2.5

Type: Bug Priority: Major
Reporter: Zelenin Alexandr Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: Cli, oracle, schematool

PHP 5.3.3-1ubuntu9.10 with Suhosin-Patch (cli) (built: Feb 11 2012 06:21:15)
oci8-1.4.7 as PHP extension builded from pecl repository with instantclient-basic-linux.x64- and instantclient-sdk-linux.x64-
Oracle Database 11g Enterprise Edition Release - 64bit Production

$ doctrine orm:convert-mapping --filter="ms$ions" xml .

  Unknown database type binary_float requested, Doctrine\DBAL\Platforms\OraclePlatform may not support it.


use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;

require_once 'Doctrine/Common/ClassLoader.php';

define('APPLICATION_ENV', "development");

$classLoader = new \Doctrine\Common\ClassLoader('Doctrine');

$config = new \Doctrine\ORM\Configuration();

$config->setAutoGenerateProxyClasses((APPLICATION_ENV == "development"));

$reader = new AnnotationReader();
$driverImpl = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($reader, array(__DIR__ . "/../php/ru/niifhm/bioinformatics/biodb/model"));

if (APPLICATION_ENV == "development") {
    $cache = new \Doctrine\Common\Cache\ArrayCache();
} else {
    $cache = new \Doctrine\Common\Cache\ApcCache();


$connectionOptions = array(
    'driver'   => 'oci8',
    'host'     => 'host.name',
    'dbname'   => 'db.name',
    'user'     => 'user.name',
    'password' => 'user.password'

$em = \Doctrine\ORM\EntityManager::create($connectionOptions, $config);
$platform = $em->getConnection()->getDatabasePlatform();
$platform->registerDoctrineTypeMapping('enum', 'string');

    new \Doctrine\ORM\Mapping\Driver\DatabaseDriver(

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

Comment by Marco Pivetta [ 23/Jan/13 ]


Comment by Steve Müller [ 07/Nov/13 ]

Should be fixed with following PR:


Comment by Doctrine Bot [ 13/Nov/13 ]

A related Github Pull-Request [GH-405] was closed:

Generated at Tue Oct 06 14:56:51 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.