Created
April 23, 2012 20:52
-
-
Save zgoniaiko/2473775 to your computer and use it in GitHub Desktop.
Doctrine doesn't recognize related object without join
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Entity\A | |
* | |
* @Table(name="a") | |
* @Entity | |
*/ | |
class A { | |
/** | |
* @var integer $id | |
* | |
* @Column(name="a_id", type="integer", nullable=false) | |
* @Id | |
* @GeneratedValue(strategy="IDENTITY") | |
*/ | |
private $id; | |
/** | |
* @ManyToOne(targetEntity="Entity\B") | |
* @JoinColumn(name="id", referencedColumnName="id") | |
*/ | |
private $b=null; | |
public function getId() { | |
return $this->id; | |
} | |
public function setB($b) { | |
$this->b = $b; | |
return $this; | |
} | |
public function getB() { | |
return $this->b; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Entity\B | |
* | |
* @Table(name="b") | |
* @Entity | |
*/ | |
class B { | |
/** | |
* @var integer $id | |
* | |
* @Column(name="id", type="integer", nullable=false) | |
* @Id | |
* @GeneratedValue(strategy="IDENTITY") | |
*/ | |
private $id; | |
/** | |
* @var string $name | |
* | |
* @Column(name="name", type="string", length=255, nullable=true) | |
*/ | |
private $name; | |
public function getId() { | |
return $this->id; | |
} | |
public function setName($name) { | |
$this->name = $name; | |
return $this; | |
} | |
public function getName() { | |
return $this->name; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DQL without join | |
SELECT a FROM Entity\A a WHERE a.id = :id | |
SQL without join | |
SELECT a0_.a_id AS a_id0, a0_.id AS id1 FROM a a0_ WHERE a0_.a_id = ? | |
Dump A without join | |
--------------------------------- | |
Entity\A Object | |
( | |
[id:Entity\A:private] => 5 | |
[b:Entity\A:private] => Proxy\__CG__\Entity\B Object | |
( | |
[_entityPersister:Proxy\__CG__\Entity\B:private] => Doctrine\ORM\Persisters\BasicEntityPersister Object | |
( | |
[_class:protected] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\B | |
[namespace] => Entity | |
[rootEntityName] => Entity\B | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => id | |
[id] => 1 | |
) | |
[name] => Array | |
( | |
[fieldName] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => 1 | |
[unique] => | |
[columnName] => name | |
) | |
) | |
[fieldNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[columnNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => b | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\B | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\B | |
) | |
[name] => ReflectionProperty Object | |
( | |
[name] => name | |
[class] => Entity\B | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => | |
) | |
[_conn:protected] => Doctrine\DBAL\Connection Object | |
( | |
[_conn:protected] => Doctrine\DBAL\Driver\PDOConnection Object | |
( | |
) | |
[_config:protected] => Doctrine\ORM\Configuration Object | |
( | |
[_attributes:protected] => Array | |
( | |
[metadataCacheImpl] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\A | |
[namespace] => Entity | |
[rootEntityName] => Entity\A | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => a_id | |
[id] => 1 | |
) | |
) | |
[fieldNames] => Array | |
( | |
[a_id] => id | |
) | |
[columnNames] => Array | |
( | |
[id] => a_id | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => a | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
[b] => Array | |
( | |
[fieldName] => b | |
[joinColumns] => Array | |
( | |
[0] => Array | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
) | |
) | |
[cascade] => Array | |
( | |
) | |
[inversedBy] => | |
[targetEntity] => Entity\B | |
[fetch] => 2 | |
[type] => 2 | |
[mappedBy] => | |
[isOwningSide] => 1 | |
[sourceEntity] => Entity\A | |
[isCascadeRemove] => | |
[isCascadePersist] => | |
[isCascadeRefresh] => | |
[isCascadeMerge] => | |
[isCascadeDetach] => | |
[sourceToTargetKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[joinColumnFieldNames] => Array | |
( | |
[id] => id | |
) | |
[targetToSourceKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[orphanRemoval] => | |
) | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\A | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\A | |
) | |
[b] => ReflectionProperty Object | |
( | |
[name] => b | |
[class] => Entity\A | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => Entity\A Object | |
( | |
[id:Entity\A:private] => | |
[b:Entity\A:private] => | |
) | |
) | |
[[56f6eda9b7bc18042480e348e518b09d][1]] => Doctrine\ORM\Query\ParserResult Object | |
( | |
[_sqlExecutor:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\Exec\SingleSelectExecutor Object | |
( | |
[_sqlStatements:protected] => SELECT a0_.a_id AS a_id0, a0_.id AS id1 FROM a a0_ WHERE a0_.a_id = ? | |
[queryCacheProfile:protected] => | |
) | |
[_resultSetMapping:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\ResultSetMapping Object | |
( | |
[isMixed] => | |
[aliasMap] => Array | |
( | |
[a] => Entity\A | |
) | |
[relationMap] => Array | |
( | |
) | |
[parentAliasMap] => Array | |
( | |
) | |
[fieldMappings] => Array | |
( | |
[a_id0] => id | |
) | |
[scalarMappings] => Array | |
( | |
) | |
[typeMappings] => Array | |
( | |
) | |
[entityMappings] => Array | |
( | |
[a] => | |
) | |
[metaMappings] => Array | |
( | |
[id1] => id | |
) | |
[columnOwnerMap] => Array | |
( | |
[a_id0] => a | |
[id1] => a | |
) | |
[discriminatorColumns] => Array | |
( | |
) | |
[indexByMap] => Array | |
( | |
) | |
[declaringClasses] => Array | |
( | |
[a_id0] => Entity\A | |
) | |
[isIdentifierColumn] => Array | |
( | |
) | |
) | |
[_parameterMappings:Doctrine\ORM\Query\ParserResult:private] => Array | |
( | |
[id] => Array | |
( | |
[0] => 0 | |
) | |
) | |
) | |
[[Entity\B$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\B | |
[namespace] => Entity | |
[rootEntityName] => Entity\B | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => id | |
[id] => 1 | |
) | |
[name] => Array | |
( | |
[fieldName] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => 1 | |
[unique] => | |
[columnName] => name | |
) | |
) | |
[fieldNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[columnNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => b | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\B | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\B | |
) | |
[name] => ReflectionProperty Object | |
( | |
[name] => name | |
[class] => Entity\B | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => | |
) | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[queryCacheImpl] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\A | |
[namespace] => Entity | |
[rootEntityName] => Entity\A | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => a_id | |
[id] => 1 | |
) | |
) | |
[fieldNames] => Array | |
( | |
[a_id] => id | |
) | |
[columnNames] => Array | |
( | |
[id] => a_id | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => a | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
[b] => Array | |
( | |
[fieldName] => b | |
[joinColumns] => Array | |
( | |
[0] => Array | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
) | |
) | |
[cascade] => Array | |
( | |
) | |
[inversedBy] => | |
[targetEntity] => Entity\B | |
[fetch] => 2 | |
[type] => 2 | |
[mappedBy] => | |
[isOwningSide] => 1 | |
[sourceEntity] => Entity\A | |
[isCascadeRemove] => | |
[isCascadePersist] => | |
[isCascadeRefresh] => | |
[isCascadeMerge] => | |
[isCascadeDetach] => | |
[sourceToTargetKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[joinColumnFieldNames] => Array | |
( | |
[id] => id | |
) | |
[targetToSourceKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[orphanRemoval] => | |
) | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\A | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\A | |
) | |
[b] => ReflectionProperty Object | |
( | |
[name] => b | |
[class] => Entity\A | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => Entity\A Object | |
( | |
[id:Entity\A:private] => | |
[b:Entity\A:private] => | |
) | |
) | |
[[56f6eda9b7bc18042480e348e518b09d][1]] => Doctrine\ORM\Query\ParserResult Object | |
( | |
[_sqlExecutor:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\Exec\SingleSelectExecutor Object | |
( | |
[_sqlStatements:protected] => SELECT a0_.a_id AS a_id0, a0_.id AS id1 FROM a a0_ WHERE a0_.a_id = ? | |
[queryCacheProfile:protected] => | |
) | |
[_resultSetMapping:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\ResultSetMapping Object | |
( | |
[isMixed] => | |
[aliasMap] => Array | |
( | |
[a] => Entity\A | |
) | |
[relationMap] => Array | |
( | |
) | |
[parentAliasMap] => Array | |
( | |
) | |
[fieldMappings] => Array | |
( | |
[a_id0] => id | |
) | |
[scalarMappings] => Array | |
( | |
) | |
[typeMappings] => Array | |
( | |
) | |
[entityMappings] => Array | |
( | |
[a] => | |
) | |
[metaMappings] => Array | |
( | |
[id1] => id | |
) | |
[columnOwnerMap] => Array | |
( | |
[a_id0] => a | |
[id1] => a | |
) | |
[discriminatorColumns] => Array | |
( | |
) | |
[indexByMap] => Array | |
( | |
) | |
[declaringClasses] => Array | |
( | |
[a_id0] => Entity\A | |
) | |
[isIdentifierColumn] => Array | |
( | |
) | |
) | |
[_parameterMappings:Doctrine\ORM\Query\ParserResult:private] => Array | |
( | |
[id] => Array | |
( | |
[0] => 0 | |
) | |
) | |
) | |
[[Entity\B$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\B | |
[namespace] => Entity | |
[rootEntityName] => Entity\B | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => id | |
[id] => 1 | |
) | |
[name] => Array | |
( | |
[fieldName] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => 1 | |
[unique] => | |
[columnName] => name | |
) | |
) | |
[fieldNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[columnNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => b | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\B | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\B | |
) | |
[name] => ReflectionProperty Object | |
( | |
[name] => name | |
[class] => Entity\B | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => | |
) | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[resultCacheImpl] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => dc2_d42b9c57d24cf5db3bd8d332dc35437f_ | |
) | |
[proxyDir] => /home/ivan/sites/doctrine/doctrine-doctrine2-7d8c6c8/tmp/Proxy | |
[proxyNamespace] => Proxy | |
[autoGenerateProxyClasses] => 1 | |
[metadataDriverImpl] => Doctrine\ORM\Mapping\Driver\AnnotationDriver Object | |
( | |
[_reader:protected] => Doctrine\Common\Annotations\CachedReader Object | |
( | |
[delegate:Doctrine\Common\Annotations\CachedReader:private] => Doctrine\Common\Annotations\SimpleAnnotationReader Object | |
( | |
[parser:Doctrine\Common\Annotations\SimpleAnnotationReader:private] => Doctrine\Common\Annotations\DocParser Object | |
( | |
[lexer:Doctrine\Common\Annotations\DocParser:private] => Doctrine\Common\Annotations\DocLexer Object | |
( | |
[tokens:Doctrine\Common\Lexer:private] => Array | |
( | |
[0] => Array | |
( | |
[value] => @ | |
[type] => 101 | |
[position] => 0 | |
) | |
[1] => Array | |
( | |
[value] => var | |
[type] => 2 | |
[position] => 1 | |
) | |
[2] => Array | |
( | |
[value] => string | |
[type] => 2 | |
[position] => 5 | |
) | |
[3] => Array | |
( | |
[value] => $ | |
[type] => 1 | |
[position] => 12 | |
) | |
[4] => Array | |
( | |
[value] => name | |
[type] => 2 | |
[position] => 13 | |
) | |
[5] => Array | |
( | |
[value] => @ | |
[type] => 101 | |
[position] => 26 | |
) | |
[6] => Array | |
( | |
[value] => Column | |
[type] => 2 | |
[position] => 27 | |
) | |
[7] => Array | |
( | |
[value] => ( | |
[type] => 109 | |
[position] => 33 | |
) | |
[8] => Array | |
( | |
[value] => name | |
[type] => 2 | |
[position] => 34 | |
) | |
[9] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 38 | |
) | |
[10] => Array | |
( | |
[value] => name | |
[type] => 4 | |
[position] => 39 | |
) | |
[11] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 45 | |
) | |
[12] => Array | |
( | |
[value] => type | |
[type] => 2 | |
[position] => 47 | |
) | |
[13] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 51 | |
) | |
[14] => Array | |
( | |
[value] => string | |
[type] => 4 | |
[position] => 52 | |
) | |
[15] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 60 | |
) | |
[16] => Array | |
( | |
[value] => length | |
[type] => 2 | |
[position] => 62 | |
) | |
[17] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 68 | |
) | |
[18] => Array | |
( | |
[value] => 255 | |
[type] => 3 | |
[position] => 69 | |
) | |
[19] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 72 | |
) | |
[20] => Array | |
( | |
[value] => nullable | |
[type] => 2 | |
[position] => 74 | |
) | |
[21] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 82 | |
) | |
[22] => Array | |
( | |
[value] => true | |
[type] => 110 | |
[position] => 83 | |
) | |
[23] => Array | |
( | |
[value] => ) | |
[type] => 103 | |
[position] => 87 | |
) | |
) | |
[position:Doctrine\Common\Lexer:private] => 24 | |
[peek:Doctrine\Common\Lexer:private] => 0 | |
[lookahead] => | |
[token] => Array | |
( | |
[value] => ) | |
[type] => 103 | |
[position] => 87 | |
) | |
) | |
[target:Doctrine\Common\Annotations\DocParser:private] => | |
[isNestedAnnotation:Doctrine\Common\Annotations\DocParser:private] => 1 | |
[imports:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
) | |
[classExists:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
[Doctrine\ORM\Mapping\Table] => 1 | |
[Doctrine\ORM\Mapping\Entity] => 1 | |
[Doctrine\ORM\Mapping\var] => | |
[Doctrine\ORM\Mapping\Column] => 1 | |
[Doctrine\ORM\Mapping\Id] => 1 | |
[Doctrine\ORM\Mapping\GeneratedValue] => 1 | |
[Doctrine\ORM\Mapping\ManyToOne] => 1 | |
[Doctrine\ORM\Mapping\JoinColumn] => 1 | |
) | |
[ignoreNotImportedAnnotations:Doctrine\Common\Annotations\DocParser:private] => 1 | |
[namespaces:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
[0] => Doctrine\ORM\Mapping | |
) | |
[ignoredAnnotationNames:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
) | |
[context:Doctrine\Common\Annotations\DocParser:private] => property Entity\B::$name | |
) | |
) | |
[cache:Doctrine\Common\Annotations\CachedReader:private] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => a | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[[[C]Entity\A@[Annot]][1]] => 1335277058 | |
[[Entity\A$id@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => a_id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[[[C]Entity\A$id@[Annot]][1]] => 1335277058 | |
[[Entity\A$b@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\ManyToOne Object | |
( | |
[targetEntity] => Entity\B | |
[cascade] => | |
[fetch] => LAZY | |
[inversedBy] => | |
) | |
[1] => Doctrine\ORM\Mapping\JoinColumn Object | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
[fieldName] => | |
) | |
) | |
[[[C]Entity\A$b@[Annot]][1]] => 1335277058 | |
[[Entity\B@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => b | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[[[C]Entity\B@[Annot]][1]] => 1335277058 | |
[[Entity\B$id@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[[[C]Entity\B$id@[Annot]][1]] => 1335277058 | |
[[Entity\B$name@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => 1 | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
) | |
[[[C]Entity\B$name@[Annot]][1]] => 1335277058 | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[debug:Doctrine\Common\Annotations\CachedReader:private] => | |
[loadedAnnotations:Doctrine\Common\Annotations\CachedReader:private] => Array | |
( | |
[Entity\A@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => a | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[Entity\A$id@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => a_id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[Entity\A$b@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\ManyToOne Object | |
( | |
[targetEntity] => Entity\B | |
[cascade] => | |
[fetch] => LAZY | |
[inversedBy] => | |
) | |
[1] => Doctrine\ORM\Mapping\JoinColumn Object | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
[fieldName] => | |
) | |
) | |
[Entity\B@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => b | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[Entity\B$id@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[Entity\B$name@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => 1 | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
) | |
) | |
) | |
[_paths:protected] => Array | |
( | |
[0] => /home/ivan/sites/doctrine/doctrine-doctrine2-7d8c6c8/Entity | |
) | |
[_fileExtension:protected] => .php | |
[_classNames:protected] => | |
) | |
[classMetadataFactoryName] => Doctrine\ORM\Mapping\ClassMetadataFactory | |
) | |
) | |
[_eventManager:protected] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
[_expr:protected] => Doctrine\DBAL\Query\Expression\ExpressionBuilder Object | |
( | |
[connection:Doctrine\DBAL\Query\Expression\ExpressionBuilder:private] => Doctrine\DBAL\Connection Object | |
*RECURSION* | |
) | |
[_isConnected:Doctrine\DBAL\Connection:private] => 1 | |
[_transactionNestingLevel:Doctrine\DBAL\Connection:private] => 0 | |
[_transactionIsolationLevel:Doctrine\DBAL\Connection:private] => 2 | |
[_nestTransactionsWithSavepoints:Doctrine\DBAL\Connection:private] => | |
[_params:Doctrine\DBAL\Connection:private] => Array | |
( | |
[driver] => pdo_mysql | |
[dbname] => test | |
[user] => ivan | |
[password] => ivan | |
[host] => 127.0.0.1 | |
[charset] => utf8 | |
[driverOptions] => Array | |
( | |
[1002] => SET NAMES utf8 | |
) | |
) | |
[_platform:protected] => Doctrine\DBAL\Platforms\MySqlPlatform Object | |
( | |
[doctrineTypeMapping:protected] => | |
[doctrineTypeComments:protected] => | |
[_eventManager:protected] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
) | |
[_schemaManager:protected] => | |
[_driver:protected] => Doctrine\DBAL\Driver\PDOMySql\Driver Object | |
( | |
) | |
[_isRollbackOnly:Doctrine\DBAL\Connection:private] => | |
) | |
[_platform:protected] => Doctrine\DBAL\Platforms\MySqlPlatform Object | |
( | |
[doctrineTypeMapping:protected] => | |
[doctrineTypeComments:protected] => | |
[_eventManager:protected] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
) | |
[_em:protected] => Doctrine\ORM\EntityManager Object | |
( | |
[config:Doctrine\ORM\EntityManager:private] => Doctrine\ORM\Configuration Object | |
( | |
[_attributes:protected] => Array | |
( | |
[metadataCacheImpl] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\A | |
[namespace] => Entity | |
[rootEntityName] => Entity\A | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => a_id | |
[id] => 1 | |
) | |
) | |
[fieldNames] => Array | |
( | |
[a_id] => id | |
) | |
[columnNames] => Array | |
( | |
[id] => a_id | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => a | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
[b] => Array | |
( | |
[fieldName] => b | |
[joinColumns] => Array | |
( | |
[0] => Array | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
) | |
) | |
[cascade] => Array | |
( | |
) | |
[inversedBy] => | |
[targetEntity] => Entity\B | |
[fetch] => 2 | |
[type] => 2 | |
[mappedBy] => | |
[isOwningSide] => 1 | |
[sourceEntity] => Entity\A | |
[isCascadeRemove] => | |
[isCascadePersist] => | |
[isCascadeRefresh] => | |
[isCascadeMerge] => | |
[isCascadeDetach] => | |
[sourceToTargetKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[joinColumnFieldNames] => Array | |
( | |
[id] => id | |
) | |
[targetToSourceKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[orphanRemoval] => | |
) | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\A | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\A | |
) | |
[b] => ReflectionProperty Object | |
( | |
[name] => b | |
[class] => Entity\A | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => Entity\A Object | |
( | |
[id:Entity\A:private] => | |
[b:Entity\A:private] => | |
) | |
) | |
[[56f6eda9b7bc18042480e348e518b09d][1]] => Doctrine\ORM\Query\ParserResult Object | |
( | |
[_sqlExecutor:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\Exec\SingleSelectExecutor Object | |
( | |
[_sqlStatements:protected] => SELECT a0_.a_id AS a_id0, a0_.id AS id1 FROM a a0_ WHERE a0_.a_id = ? | |
[queryCacheProfile:protected] => | |
) | |
[_resultSetMapping:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\ResultSetMapping Object | |
( | |
[isMixed] => | |
[aliasMap] => Array | |
( | |
[a] => Entity\A | |
) | |
[relationMap] => Array | |
( | |
) | |
[parentAliasMap] => Array | |
( | |
) | |
[fieldMappings] => Array | |
( | |
[a_id0] => id | |
) | |
[scalarMappings] => Array | |
( | |
) | |
[typeMappings] => Array | |
( | |
) | |
[entityMappings] => Array | |
( | |
[a] => | |
) | |
[metaMappings] => Array | |
( | |
[id1] => id | |
) | |
[columnOwnerMap] => Array | |
( | |
[a_id0] => a | |
[id1] => a | |
) | |
[discriminatorColumns] => Array | |
( | |
) | |
[indexByMap] => Array | |
( | |
) | |
[declaringClasses] => Array | |
( | |
[a_id0] => Entity\A | |
) | |
[isIdentifierColumn] => Array | |
( | |
) | |
) | |
[_parameterMappings:Doctrine\ORM\Query\ParserResult:private] => Array | |
( | |
[id] => Array | |
( | |
[0] => 0 | |
) | |
) | |
) | |
[[Entity\B$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\B | |
[namespace] => Entity | |
[rootEntityName] => Entity\B | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => id | |
[id] => 1 | |
) | |
[name] => Array | |
( | |
[fieldName] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => 1 | |
[unique] => | |
[columnName] => name | |
) | |
) | |
[fieldNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[columnNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => b | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\B | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\B | |
) | |
[name] => ReflectionProperty Object | |
( | |
[name] => name | |
[class] => Entity\B | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => | |
) | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[queryCacheImpl] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\A | |
[namespace] => Entity | |
[rootEntityName] => Entity\A | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => a_id | |
[id] => 1 | |
) | |
) | |
[fieldNames] => Array | |
( | |
[a_id] => id | |
) | |
[columnNames] => Array | |
( | |
[id] => a_id | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => a | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
[b] => Array | |
( | |
[fieldName] => b | |
[joinColumns] => Array | |
( | |
[0] => Array | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
) | |
) | |
[cascade] => Array | |
( | |
) | |
[inversedBy] => | |
[targetEntity] => Entity\B | |
[fetch] => 2 | |
[type] => 2 | |
[mappedBy] => | |
[isOwningSide] => 1 | |
[sourceEntity] => Entity\A | |
[isCascadeRemove] => | |
[isCascadePersist] => | |
[isCascadeRefresh] => | |
[isCascadeMerge] => | |
[isCascadeDetach] => | |
[sourceToTargetKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[joinColumnFieldNames] => Array | |
( | |
[id] => id | |
) | |
[targetToSourceKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[orphanRemoval] => | |
) | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\A | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\A | |
) | |
[b] => ReflectionProperty Object | |
( | |
[name] => b | |
[class] => Entity\A | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => Entity\A Object | |
( | |
[id:Entity\A:private] => | |
[b:Entity\A:private] => | |
) | |
) | |
[[56f6eda9b7bc18042480e348e518b09d][1]] => Doctrine\ORM\Query\ParserResult Object | |
( | |
[_sqlExecutor:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\Exec\SingleSelectExecutor Object | |
( | |
[_sqlStatements:protected] => SELECT a0_.a_id AS a_id0, a0_.id AS id1 FROM a a0_ WHERE a0_.a_id = ? | |
[queryCacheProfile:protected] => | |
) | |
[_resultSetMapping:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\ResultSetMapping Object | |
( | |
[isMixed] => | |
[aliasMap] => Array | |
( | |
[a] => Entity\A | |
) | |
[relationMap] => Array | |
( | |
) | |
[parentAliasMap] => Array | |
( | |
) | |
[fieldMappings] => Array | |
( | |
[a_id0] => id | |
) | |
[scalarMappings] => Array | |
( | |
) | |
[typeMappings] => Array | |
( | |
) | |
[entityMappings] => Array | |
( | |
[a] => | |
) | |
[metaMappings] => Array | |
( | |
[id1] => id | |
) | |
[columnOwnerMap] => Array | |
( | |
[a_id0] => a | |
[id1] => a | |
) | |
[discriminatorColumns] => Array | |
( | |
) | |
[indexByMap] => Array | |
( | |
) | |
[declaringClasses] => Array | |
( | |
[a_id0] => Entity\A | |
) | |
[isIdentifierColumn] => Array | |
( | |
) | |
) | |
[_parameterMappings:Doctrine\ORM\Query\ParserResult:private] => Array | |
( | |
[id] => Array | |
( | |
[0] => 0 | |
) | |
) | |
) | |
[[Entity\B$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\B | |
[namespace] => Entity | |
[rootEntityName] => Entity\B | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => id | |
[id] => 1 | |
) | |
[name] => Array | |
( | |
[fieldName] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => 1 | |
[unique] => | |
[columnName] => name | |
) | |
) | |
[fieldNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[columnNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => b | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\B | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\B | |
) | |
[name] => ReflectionProperty Object | |
( | |
[name] => name | |
[class] => Entity\B | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => | |
) | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[resultCacheImpl] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => dc2_d42b9c57d24cf5db3bd8d332dc35437f_ | |
) | |
[proxyDir] => /home/ivan/sites/doctrine/doctrine-doctrine2-7d8c6c8/tmp/Proxy | |
[proxyNamespace] => Proxy | |
[autoGenerateProxyClasses] => 1 | |
[metadataDriverImpl] => Doctrine\ORM\Mapping\Driver\AnnotationDriver Object | |
( | |
[_reader:protected] => Doctrine\Common\Annotations\CachedReader Object | |
( | |
[delegate:Doctrine\Common\Annotations\CachedReader:private] => Doctrine\Common\Annotations\SimpleAnnotationReader Object | |
( | |
[parser:Doctrine\Common\Annotations\SimpleAnnotationReader:private] => Doctrine\Common\Annotations\DocParser Object | |
( | |
[lexer:Doctrine\Common\Annotations\DocParser:private] => Doctrine\Common\Annotations\DocLexer Object | |
( | |
[tokens:Doctrine\Common\Lexer:private] => Array | |
( | |
[0] => Array | |
( | |
[value] => @ | |
[type] => 101 | |
[position] => 0 | |
) | |
[1] => Array | |
( | |
[value] => var | |
[type] => 2 | |
[position] => 1 | |
) | |
[2] => Array | |
( | |
[value] => string | |
[type] => 2 | |
[position] => 5 | |
) | |
[3] => Array | |
( | |
[value] => $ | |
[type] => 1 | |
[position] => 12 | |
) | |
[4] => Array | |
( | |
[value] => name | |
[type] => 2 | |
[position] => 13 | |
) | |
[5] => Array | |
( | |
[value] => @ | |
[type] => 101 | |
[position] => 26 | |
) | |
[6] => Array | |
( | |
[value] => Column | |
[type] => 2 | |
[position] => 27 | |
) | |
[7] => Array | |
( | |
[value] => ( | |
[type] => 109 | |
[position] => 33 | |
) | |
[8] => Array | |
( | |
[value] => name | |
[type] => 2 | |
[position] => 34 | |
) | |
[9] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 38 | |
) | |
[10] => Array | |
( | |
[value] => name | |
[type] => 4 | |
[position] => 39 | |
) | |
[11] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 45 | |
) | |
[12] => Array | |
( | |
[value] => type | |
[type] => 2 | |
[position] => 47 | |
) | |
[13] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 51 | |
) | |
[14] => Array | |
( | |
[value] => string | |
[type] => 4 | |
[position] => 52 | |
) | |
[15] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 60 | |
) | |
[16] => Array | |
( | |
[value] => length | |
[type] => 2 | |
[position] => 62 | |
) | |
[17] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 68 | |
) | |
[18] => Array | |
( | |
[value] => 255 | |
[type] => 3 | |
[position] => 69 | |
) | |
[19] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 72 | |
) | |
[20] => Array | |
( | |
[value] => nullable | |
[type] => 2 | |
[position] => 74 | |
) | |
[21] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 82 | |
) | |
[22] => Array | |
( | |
[value] => true | |
[type] => 110 | |
[position] => 83 | |
) | |
[23] => Array | |
( | |
[value] => ) | |
[type] => 103 | |
[position] => 87 | |
) | |
) | |
[position:Doctrine\Common\Lexer:private] => 24 | |
[peek:Doctrine\Common\Lexer:private] => 0 | |
[lookahead] => | |
[token] => Array | |
( | |
[value] => ) | |
[type] => 103 | |
[position] => 87 | |
) | |
) | |
[target:Doctrine\Common\Annotations\DocParser:private] => | |
[isNestedAnnotation:Doctrine\Common\Annotations\DocParser:private] => 1 | |
[imports:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
) | |
[classExists:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
[Doctrine\ORM\Mapping\Table] => 1 | |
[Doctrine\ORM\Mapping\Entity] => 1 | |
[Doctrine\ORM\Mapping\var] => | |
[Doctrine\ORM\Mapping\Column] => 1 | |
[Doctrine\ORM\Mapping\Id] => 1 | |
[Doctrine\ORM\Mapping\GeneratedValue] => 1 | |
[Doctrine\ORM\Mapping\ManyToOne] => 1 | |
[Doctrine\ORM\Mapping\JoinColumn] => 1 | |
) | |
[ignoreNotImportedAnnotations:Doctrine\Common\Annotations\DocParser:private] => 1 | |
[namespaces:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
[0] => Doctrine\ORM\Mapping | |
) | |
[ignoredAnnotationNames:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
) | |
[context:Doctrine\Common\Annotations\DocParser:private] => property Entity\B::$name | |
) | |
) | |
[cache:Doctrine\Common\Annotations\CachedReader:private] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => a | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[[[C]Entity\A@[Annot]][1]] => 1335277058 | |
[[Entity\A$id@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => a_id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[[[C]Entity\A$id@[Annot]][1]] => 1335277058 | |
[[Entity\A$b@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\ManyToOne Object | |
( | |
[targetEntity] => Entity\B | |
[cascade] => | |
[fetch] => LAZY | |
[inversedBy] => | |
) | |
[1] => Doctrine\ORM\Mapping\JoinColumn Object | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
[fieldName] => | |
) | |
) | |
[[[C]Entity\A$b@[Annot]][1]] => 1335277058 | |
[[Entity\B@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => b | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[[[C]Entity\B@[Annot]][1]] => 1335277058 | |
[[Entity\B$id@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[[[C]Entity\B$id@[Annot]][1]] => 1335277058 | |
[[Entity\B$name@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => 1 | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
) | |
[[[C]Entity\B$name@[Annot]][1]] => 1335277058 | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[debug:Doctrine\Common\Annotations\CachedReader:private] => | |
[loadedAnnotations:Doctrine\Common\Annotations\CachedReader:private] => Array | |
( | |
[Entity\A@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => a | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[Entity\A$id@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => a_id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[Entity\A$b@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\ManyToOne Object | |
( | |
[targetEntity] => Entity\B | |
[cascade] => | |
[fetch] => LAZY | |
[inversedBy] => | |
) | |
[1] => Doctrine\ORM\Mapping\JoinColumn Object | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
[fieldName] => | |
) | |
) | |
[Entity\B@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => b | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[Entity\B$id@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[Entity\B$name@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => 1 | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
) | |
) | |
) | |
[_paths:protected] => Array | |
( | |
[0] => /home/ivan/sites/doctrine/doctrine-doctrine2-7d8c6c8/Entity | |
) | |
[_fileExtension:protected] => .php | |
[_classNames:protected] => | |
) | |
[classMetadataFactoryName] => Doctrine\ORM\Mapping\ClassMetadataFactory | |
) | |
) | |
[conn:Doctrine\ORM\EntityManager:private] => Doctrine\DBAL\Connection Object | |
( | |
[_conn:protected] => Doctrine\DBAL\Driver\PDOConnection Object | |
( | |
) | |
[_config:protected] => Doctrine\ORM\Configuration Object | |
( | |
[_attributes:protected] => Array | |
( | |
[metadataCacheImpl] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\A | |
[namespace] => Entity | |
[rootEntityName] => Entity\A | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => a_id | |
[id] => 1 | |
) | |
) | |
[fieldNames] => Array | |
( | |
[a_id] => id | |
) | |
[columnNames] => Array | |
( | |
[id] => a_id | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => a | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
[b] => Array | |
( | |
[fieldName] => b | |
[joinColumns] => Array | |
( | |
[0] => Array | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
) | |
) | |
[cascade] => Array | |
( | |
) | |
[inversedBy] => | |
[targetEntity] => Entity\B | |
[fetch] => 2 | |
[type] => 2 | |
[mappedBy] => | |
[isOwningSide] => 1 | |
[sourceEntity] => Entity\A | |
[isCascadeRemove] => | |
[isCascadePersist] => | |
[isCascadeRefresh] => | |
[isCascadeMerge] => | |
[isCascadeDetach] => | |
[sourceToTargetKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[joinColumnFieldNames] => Array | |
( | |
[id] => id | |
) | |
[targetToSourceKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[orphanRemoval] => | |
) | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\A | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\A | |
) | |
[b] => ReflectionProperty Object | |
( | |
[name] => b | |
[class] => Entity\A | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => Entity\A Object | |
( | |
[id:Entity\A:private] => | |
[b:Entity\A:private] => | |
) | |
) | |
[[56f6eda9b7bc18042480e348e518b09d][1]] => Doctrine\ORM\Query\ParserResult Object | |
( | |
[_sqlExecutor:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\Exec\SingleSelectExecutor Object | |
( | |
[_sqlStatements:protected] => SELECT a0_.a_id AS a_id0, a0_.id AS id1 FROM a a0_ WHERE a0_.a_id = ? | |
[queryCacheProfile:protected] => | |
) | |
[_resultSetMapping:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\ResultSetMapping Object | |
( | |
[isMixed] => | |
[aliasMap] => Array | |
( | |
[a] => Entity\A | |
) | |
[relationMap] => Array | |
( | |
) | |
[parentAliasMap] => Array | |
( | |
) | |
[fieldMappings] => Array | |
( | |
[a_id0] => id | |
) | |
[scalarMappings] => Array | |
( | |
) | |
[typeMappings] => Array | |
( | |
) | |
[entityMappings] => Array | |
( | |
[a] => | |
) | |
[metaMappings] => Array | |
( | |
[id1] => id | |
) | |
[columnOwnerMap] => Array | |
( | |
[a_id0] => a | |
[id1] => a | |
) | |
[discriminatorColumns] => Array | |
( | |
) | |
[indexByMap] => Array | |
( | |
) | |
[declaringClasses] => Array | |
( | |
[a_id0] => Entity\A | |
) | |
[isIdentifierColumn] => Array | |
( | |
) | |
) | |
[_parameterMappings:Doctrine\ORM\Query\ParserResult:private] => Array | |
( | |
[id] => Array | |
( | |
[0] => 0 | |
) | |
) | |
) | |
[[Entity\B$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\B | |
[namespace] => Entity | |
[rootEntityName] => Entity\B | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => id | |
[id] => 1 | |
) | |
[name] => Array | |
( | |
[fieldName] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => 1 | |
[unique] => | |
[columnName] => name | |
) | |
) | |
[fieldNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[columnNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => b | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\B | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\B | |
) | |
[name] => ReflectionProperty Object | |
( | |
[name] => name | |
[class] => Entity\B | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => | |
) | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[queryCacheImpl] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\A | |
[namespace] => Entity | |
[rootEntityName] => Entity\A | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => a_id | |
[id] => 1 | |
) | |
) | |
[fieldNames] => Array | |
( | |
[a_id] => id | |
) | |
[columnNames] => Array | |
( | |
[id] => a_id | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => a | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
[b] => Array | |
( | |
[fieldName] => b | |
[joinColumns] => Array | |
( | |
[0] => Array | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
) | |
) | |
[cascade] => Array | |
( | |
) | |
[inversedBy] => | |
[targetEntity] => Entity\B | |
[fetch] => 2 | |
[type] => 2 | |
[mappedBy] => | |
[isOwningSide] => 1 | |
[sourceEntity] => Entity\A | |
[isCascadeRemove] => | |
[isCascadePersist] => | |
[isCascadeRefresh] => | |
[isCascadeMerge] => | |
[isCascadeDetach] => | |
[sourceToTargetKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[joinColumnFieldNames] => Array | |
( | |
[id] => id | |
) | |
[targetToSourceKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[orphanRemoval] => | |
) | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\A | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\A | |
) | |
[b] => ReflectionProperty Object | |
( | |
[name] => b | |
[class] => Entity\A | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => Entity\A Object | |
( | |
[id:Entity\A:private] => | |
[b:Entity\A:private] => | |
) | |
) | |
[[56f6eda9b7bc18042480e348e518b09d][1]] => Doctrine\ORM\Query\ParserResult Object | |
( | |
[_sqlExecutor:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\Exec\SingleSelectExecutor Object | |
( | |
[_sqlStatements:protected] => SELECT a0_.a_id AS a_id0, a0_.id AS id1 FROM a a0_ WHERE a0_.a_id = ? | |
[queryCacheProfile:protected] => | |
) | |
[_resultSetMapping:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\ResultSetMapping Object | |
( | |
[isMixed] => | |
[aliasMap] => Array | |
( | |
[a] => Entity\A | |
) | |
[relationMap] => Array | |
( | |
) | |
[parentAliasMap] => Array | |
( | |
) | |
[fieldMappings] => Array | |
( | |
[a_id0] => id | |
) | |
[scalarMappings] => Array | |
( | |
) | |
[typeMappings] => Array | |
( | |
) | |
[entityMappings] => Array | |
( | |
[a] => | |
) | |
[metaMappings] => Array | |
( | |
[id1] => id | |
) | |
[columnOwnerMap] => Array | |
( | |
[a_id0] => a | |
[id1] => a | |
) | |
[discriminatorColumns] => Array | |
( | |
) | |
[indexByMap] => Array | |
( | |
) | |
[declaringClasses] => Array | |
( | |
[a_id0] => Entity\A | |
) | |
[isIdentifierColumn] => Array | |
( | |
) | |
) | |
[_parameterMappings:Doctrine\ORM\Query\ParserResult:private] => Array | |
( | |
[id] => Array | |
( | |
[0] => 0 | |
) | |
) | |
) | |
[[Entity\B$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\B | |
[namespace] => Entity | |
[rootEntityName] => Entity\B | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => id | |
[id] => 1 | |
) | |
[name] => Array | |
( | |
[fieldName] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => 1 | |
[unique] => | |
[columnName] => name | |
) | |
) | |
[fieldNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[columnNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => b | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\B | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\B | |
) | |
[name] => ReflectionProperty Object | |
( | |
[name] => name | |
[class] => Entity\B | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => | |
) | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[resultCacheImpl] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => dc2_d42b9c57d24cf5db3bd8d332dc35437f_ | |
) | |
[proxyDir] => /home/ivan/sites/doctrine/doctrine-doctrine2-7d8c6c8/tmp/Proxy | |
[proxyNamespace] => Proxy | |
[autoGenerateProxyClasses] => 1 | |
[metadataDriverImpl] => Doctrine\ORM\Mapping\Driver\AnnotationDriver Object | |
( | |
[_reader:protected] => Doctrine\Common\Annotations\CachedReader Object | |
( | |
[delegate:Doctrine\Common\Annotations\CachedReader:private] => Doctrine\Common\Annotations\SimpleAnnotationReader Object | |
( | |
[parser:Doctrine\Common\Annotations\SimpleAnnotationReader:private] => Doctrine\Common\Annotations\DocParser Object | |
( | |
[lexer:Doctrine\Common\Annotations\DocParser:private] => Doctrine\Common\Annotations\DocLexer Object | |
( | |
[tokens:Doctrine\Common\Lexer:private] => Array | |
( | |
[0] => Array | |
( | |
[value] => @ | |
[type] => 101 | |
[position] => 0 | |
) | |
[1] => Array | |
( | |
[value] => var | |
[type] => 2 | |
[position] => 1 | |
) | |
[2] => Array | |
( | |
[value] => string | |
[type] => 2 | |
[position] => 5 | |
) | |
[3] => Array | |
( | |
[value] => $ | |
[type] => 1 | |
[position] => 12 | |
) | |
[4] => Array | |
( | |
[value] => name | |
[type] => 2 | |
[position] => 13 | |
) | |
[5] => Array | |
( | |
[value] => @ | |
[type] => 101 | |
[position] => 26 | |
) | |
[6] => Array | |
( | |
[value] => Column | |
[type] => 2 | |
[position] => 27 | |
) | |
[7] => Array | |
( | |
[value] => ( | |
[type] => 109 | |
[position] => 33 | |
) | |
[8] => Array | |
( | |
[value] => name | |
[type] => 2 | |
[position] => 34 | |
) | |
[9] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 38 | |
) | |
[10] => Array | |
( | |
[value] => name | |
[type] => 4 | |
[position] => 39 | |
) | |
[11] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 45 | |
) | |
[12] => Array | |
( | |
[value] => type | |
[type] => 2 | |
[position] => 47 | |
) | |
[13] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 51 | |
) | |
[14] => Array | |
( | |
[value] => string | |
[type] => 4 | |
[position] => 52 | |
) | |
[15] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 60 | |
) | |
[16] => Array | |
( | |
[value] => length | |
[type] => 2 | |
[position] => 62 | |
) | |
[17] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 68 | |
) | |
[18] => Array | |
( | |
[value] => 255 | |
[type] => 3 | |
[position] => 69 | |
) | |
[19] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 72 | |
) | |
[20] => Array | |
( | |
[value] => nullable | |
[type] => 2 | |
[position] => 74 | |
) | |
[21] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 82 | |
) | |
[22] => Array | |
( | |
[value] => true | |
[type] => 110 | |
[position] => 83 | |
) | |
[23] => Array | |
( | |
[value] => ) | |
[type] => 103 | |
[position] => 87 | |
) | |
) | |
[position:Doctrine\Common\Lexer:private] => 24 | |
[peek:Doctrine\Common\Lexer:private] => 0 | |
[lookahead] => | |
[token] => Array | |
( | |
[value] => ) | |
[type] => 103 | |
[position] => 87 | |
) | |
) | |
[target:Doctrine\Common\Annotations\DocParser:private] => | |
[isNestedAnnotation:Doctrine\Common\Annotations\DocParser:private] => 1 | |
[imports:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
) | |
[classExists:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
[Doctrine\ORM\Mapping\Table] => 1 | |
[Doctrine\ORM\Mapping\Entity] => 1 | |
[Doctrine\ORM\Mapping\var] => | |
[Doctrine\ORM\Mapping\Column] => 1 | |
[Doctrine\ORM\Mapping\Id] => 1 | |
[Doctrine\ORM\Mapping\GeneratedValue] => 1 | |
[Doctrine\ORM\Mapping\ManyToOne] => 1 | |
[Doctrine\ORM\Mapping\JoinColumn] => 1 | |
) | |
[ignoreNotImportedAnnotations:Doctrine\Common\Annotations\DocParser:private] => 1 | |
[namespaces:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
[0] => Doctrine\ORM\Mapping | |
) | |
[ignoredAnnotationNames:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
) | |
[context:Doctrine\Common\Annotations\DocParser:private] => property Entity\B::$name | |
) | |
) | |
[cache:Doctrine\Common\Annotations\CachedReader:private] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => a | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[[[C]Entity\A@[Annot]][1]] => 1335277058 | |
[[Entity\A$id@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => a_id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[[[C]Entity\A$id@[Annot]][1]] => 1335277058 | |
[[Entity\A$b@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\ManyToOne Object | |
( | |
[targetEntity] => Entity\B | |
[cascade] => | |
[fetch] => LAZY | |
[inversedBy] => | |
) | |
[1] => Doctrine\ORM\Mapping\JoinColumn Object | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
[fieldName] => | |
) | |
) | |
[[[C]Entity\A$b@[Annot]][1]] => 1335277058 | |
[[Entity\B@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => b | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[[[C]Entity\B@[Annot]][1]] => 1335277058 | |
[[Entity\B$id@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[[[C]Entity\B$id@[Annot]][1]] => 1335277058 | |
[[Entity\B$name@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => 1 | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
) | |
[[[C]Entity\B$name@[Annot]][1]] => 1335277058 | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[debug:Doctrine\Common\Annotations\CachedReader:private] => | |
[loadedAnnotations:Doctrine\Common\Annotations\CachedReader:private] => Array | |
( | |
[Entity\A@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => a | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[Entity\A$id@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => a_id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[Entity\A$b@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\ManyToOne Object | |
( | |
[targetEntity] => Entity\B | |
[cascade] => | |
[fetch] => LAZY | |
[inversedBy] => | |
) | |
[1] => Doctrine\ORM\Mapping\JoinColumn Object | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
[fieldName] => | |
) | |
) | |
[Entity\B@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => b | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[Entity\B$id@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[Entity\B$name@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => 1 | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
) | |
) | |
) | |
[_paths:protected] => Array | |
( | |
[0] => /home/ivan/sites/doctrine/doctrine-doctrine2-7d8c6c8/Entity | |
) | |
[_fileExtension:protected] => .php | |
[_classNames:protected] => | |
) | |
[classMetadataFactoryName] => Doctrine\ORM\Mapping\ClassMetadataFactory | |
) | |
) | |
[_eventManager:protected] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
[_expr:protected] => Doctrine\DBAL\Query\Expression\ExpressionBuilder Object | |
( | |
[connection:Doctrine\DBAL\Query\Expression\ExpressionBuilder:private] => Doctrine\DBAL\Connection Object | |
*RECURSION* | |
) | |
[_isConnected:Doctrine\DBAL\Connection:private] => 1 | |
[_transactionNestingLevel:Doctrine\DBAL\Connection:private] => 0 | |
[_transactionIsolationLevel:Doctrine\DBAL\Connection:private] => 2 | |
[_nestTransactionsWithSavepoints:Doctrine\DBAL\Connection:private] => | |
[_params:Doctrine\DBAL\Connection:private] => Array | |
( | |
[driver] => pdo_mysql | |
[dbname] => test | |
[user] => ivan | |
[password] => ivan | |
[host] => 127.0.0.1 | |
[charset] => utf8 | |
[driverOptions] => Array | |
( | |
[1002] => SET NAMES utf8 | |
) | |
) | |
[_platform:protected] => Doctrine\DBAL\Platforms\MySqlPlatform Object | |
( | |
[doctrineTypeMapping:protected] => | |
[doctrineTypeComments:protected] => | |
[_eventManager:protected] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
) | |
[_schemaManager:protected] => | |
[_driver:protected] => Doctrine\DBAL\Driver\PDOMySql\Driver Object | |
( | |
) | |
[_isRollbackOnly:Doctrine\DBAL\Connection:private] => | |
) | |
[metadataFactory:Doctrine\ORM\EntityManager:private] => Doctrine\ORM\Mapping\ClassMetadataFactory Object | |
( | |
[em:Doctrine\ORM\Mapping\ClassMetadataFactory:private] => Doctrine\ORM\EntityManager Object | |
*RECURSION* | |
[targetPlatform:Doctrine\ORM\Mapping\ClassMetadataFactory:private] => Doctrine\DBAL\Platforms\MySqlPlatform Object | |
( | |
[doctrineTypeMapping:protected] => | |
[doctrineTypeComments:protected] => | |
[_eventManager:protected] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
) | |
[driver:Doctrine\ORM\Mapping\ClassMetadataFactory:private] => Doctrine\ORM\Mapping\Driver\AnnotationDriver Object | |
( | |
[_reader:protected] => Doctrine\Common\Annotations\CachedReader Object | |
( | |
[delegate:Doctrine\Common\Annotations\CachedReader:private] => Doctrine\Common\Annotations\SimpleAnnotationReader Object | |
( | |
[parser:Doctrine\Common\Annotations\SimpleAnnotationReader:private] => Doctrine\Common\Annotations\DocParser Object | |
( | |
[lexer:Doctrine\Common\Annotations\DocParser:private] => Doctrine\Common\Annotations\DocLexer Object | |
( | |
[tokens:Doctrine\Common\Lexer:private] => Array | |
( | |
[0] => Array | |
( | |
[value] => @ | |
[type] => 101 | |
[position] => 0 | |
) | |
[1] => Array | |
( | |
[value] => var | |
[type] => 2 | |
[position] => 1 | |
) | |
[2] => Array | |
( | |
[value] => string | |
[type] => 2 | |
[position] => 5 | |
) | |
[3] => Array | |
( | |
[value] => $ | |
[type] => 1 | |
[position] => 12 | |
) | |
[4] => Array | |
( | |
[value] => name | |
[type] => 2 | |
[position] => 13 | |
) | |
[5] => Array | |
( | |
[value] => @ | |
[type] => 101 | |
[position] => 26 | |
) | |
[6] => Array | |
( | |
[value] => Column | |
[type] => 2 | |
[position] => 27 | |
) | |
[7] => Array | |
( | |
[value] => ( | |
[type] => 109 | |
[position] => 33 | |
) | |
[8] => Array | |
( | |
[value] => name | |
[type] => 2 | |
[position] => 34 | |
) | |
[9] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 38 | |
) | |
[10] => Array | |
( | |
[value] => name | |
[type] => 4 | |
[position] => 39 | |
) | |
[11] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 45 | |
) | |
[12] => Array | |
( | |
[value] => type | |
[type] => 2 | |
[position] => 47 | |
) | |
[13] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 51 | |
) | |
[14] => Array | |
( | |
[value] => string | |
[type] => 4 | |
[position] => 52 | |
) | |
[15] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 60 | |
) | |
[16] => Array | |
( | |
[value] => length | |
[type] => 2 | |
[position] => 62 | |
) | |
[17] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 68 | |
) | |
[18] => Array | |
( | |
[value] => 255 | |
[type] => 3 | |
[position] => 69 | |
) | |
[19] => Array | |
( | |
[value] => , | |
[type] => 104 | |
[position] => 72 | |
) | |
[20] => Array | |
( | |
[value] => nullable | |
[type] => 2 | |
[position] => 74 | |
) | |
[21] => Array | |
( | |
[value] => = | |
[type] => 105 | |
[position] => 82 | |
) | |
[22] => Array | |
( | |
[value] => true | |
[type] => 110 | |
[position] => 83 | |
) | |
[23] => Array | |
( | |
[value] => ) | |
[type] => 103 | |
[position] => 87 | |
) | |
) | |
[position:Doctrine\Common\Lexer:private] => 24 | |
[peek:Doctrine\Common\Lexer:private] => 0 | |
[lookahead] => | |
[token] => Array | |
( | |
[value] => ) | |
[type] => 103 | |
[position] => 87 | |
) | |
) | |
[target:Doctrine\Common\Annotations\DocParser:private] => | |
[isNestedAnnotation:Doctrine\Common\Annotations\DocParser:private] => 1 | |
[imports:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
) | |
[classExists:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
[Doctrine\ORM\Mapping\Table] => 1 | |
[Doctrine\ORM\Mapping\Entity] => 1 | |
[Doctrine\ORM\Mapping\var] => | |
[Doctrine\ORM\Mapping\Column] => 1 | |
[Doctrine\ORM\Mapping\Id] => 1 | |
[Doctrine\ORM\Mapping\GeneratedValue] => 1 | |
[Doctrine\ORM\Mapping\ManyToOne] => 1 | |
[Doctrine\ORM\Mapping\JoinColumn] => 1 | |
) | |
[ignoreNotImportedAnnotations:Doctrine\Common\Annotations\DocParser:private] => 1 | |
[namespaces:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
[0] => Doctrine\ORM\Mapping | |
) | |
[ignoredAnnotationNames:Doctrine\Common\Annotations\DocParser:private] => Array | |
( | |
) | |
[context:Doctrine\Common\Annotations\DocParser:private] => property Entity\B::$name | |
) | |
) | |
[cache:Doctrine\Common\Annotations\CachedReader:private] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => a | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[[[C]Entity\A@[Annot]][1]] => 1335277058 | |
[[Entity\A$id@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => a_id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[[[C]Entity\A$id@[Annot]][1]] => 1335277058 | |
[[Entity\A$b@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\ManyToOne Object | |
( | |
[targetEntity] => Entity\B | |
[cascade] => | |
[fetch] => LAZY | |
[inversedBy] => | |
) | |
[1] => Doctrine\ORM\Mapping\JoinColumn Object | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
[fieldName] => | |
) | |
) | |
[[[C]Entity\A$b@[Annot]][1]] => 1335277058 | |
[[Entity\B@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => b | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[[[C]Entity\B@[Annot]][1]] => 1335277058 | |
[[Entity\B$id@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[[[C]Entity\B$id@[Annot]][1]] => 1335277058 | |
[[Entity\B$name@[Annot]][1]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => 1 | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
) | |
[[[C]Entity\B$name@[Annot]][1]] => 1335277058 | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[debug:Doctrine\Common\Annotations\CachedReader:private] => | |
[loadedAnnotations:Doctrine\Common\Annotations\CachedReader:private] => Array | |
( | |
[Entity\A@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => a | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[Entity\A$id@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => a_id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[Entity\A$b@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\ManyToOne Object | |
( | |
[targetEntity] => Entity\B | |
[cascade] => | |
[fetch] => LAZY | |
[inversedBy] => | |
) | |
[1] => Doctrine\ORM\Mapping\JoinColumn Object | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
[fieldName] => | |
) | |
) | |
[Entity\B@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Table Object | |
( | |
[name] => b | |
[schema] => | |
[indexes] => | |
[uniqueConstraints] => | |
) | |
[1] => Doctrine\ORM\Mapping\Entity Object | |
( | |
[repositoryClass] => | |
[readOnly] => | |
) | |
) | |
[Entity\B$id@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
[1] => Doctrine\ORM\Mapping\Id Object | |
( | |
) | |
[2] => Doctrine\ORM\Mapping\GeneratedValue Object | |
( | |
[strategy] => IDENTITY | |
) | |
) | |
[Entity\B$name@[Annot]] => Array | |
( | |
[0] => Doctrine\ORM\Mapping\Column Object | |
( | |
[name] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[unique] => | |
[nullable] => 1 | |
[options] => Array | |
( | |
) | |
[columnDefinition] => | |
) | |
) | |
) | |
) | |
[_paths:protected] => Array | |
( | |
[0] => /home/ivan/sites/doctrine/doctrine-doctrine2-7d8c6c8/Entity | |
) | |
[_fileExtension:protected] => .php | |
[_classNames:protected] => | |
) | |
[evm:Doctrine\ORM\Mapping\ClassMetadataFactory:private] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
[cacheDriver:Doctrine\ORM\Mapping\ClassMetadataFactory:private] => Doctrine\Common\Cache\ArrayCache Object | |
( | |
[data:Doctrine\Common\Cache\ArrayCache:private] => Array | |
( | |
[[Entity\A$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\A | |
[namespace] => Entity | |
[rootEntityName] => Entity\A | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => a_id | |
[id] => 1 | |
) | |
) | |
[fieldNames] => Array | |
( | |
[a_id] => id | |
) | |
[columnNames] => Array | |
( | |
[id] => a_id | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => a | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
[b] => Array | |
( | |
[fieldName] => b | |
[joinColumns] => Array | |
( | |
[0] => Array | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
) | |
) | |
[cascade] => Array | |
( | |
) | |
[inversedBy] => | |
[targetEntity] => Entity\B | |
[fetch] => 2 | |
[type] => 2 | |
[mappedBy] => | |
[isOwningSide] => 1 | |
[sourceEntity] => Entity\A | |
[isCascadeRemove] => | |
[isCascadePersist] => | |
[isCascadeRefresh] => | |
[isCascadeMerge] => | |
[isCascadeDetach] => | |
[sourceToTargetKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[joinColumnFieldNames] => Array | |
( | |
[id] => id | |
) | |
[targetToSourceKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[orphanRemoval] => | |
) | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\A | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\A | |
) | |
[b] => ReflectionProperty Object | |
( | |
[name] => b | |
[class] => Entity\A | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => Entity\A Object | |
( | |
[id:Entity\A:private] => | |
[b:Entity\A:private] => | |
) | |
) | |
[[56f6eda9b7bc18042480e348e518b09d][1]] => Doctrine\ORM\Query\ParserResult Object | |
( | |
[_sqlExecutor:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\Exec\SingleSelectExecutor Object | |
( | |
[_sqlStatements:protected] => SELECT a0_.a_id AS a_id0, a0_.id AS id1 FROM a a0_ WHERE a0_.a_id = ? | |
[queryCacheProfile:protected] => | |
) | |
[_resultSetMapping:Doctrine\ORM\Query\ParserResult:private] => Doctrine\ORM\Query\ResultSetMapping Object | |
( | |
[isMixed] => | |
[aliasMap] => Array | |
( | |
[a] => Entity\A | |
) | |
[relationMap] => Array | |
( | |
) | |
[parentAliasMap] => Array | |
( | |
) | |
[fieldMappings] => Array | |
( | |
[a_id0] => id | |
) | |
[scalarMappings] => Array | |
( | |
) | |
[typeMappings] => Array | |
( | |
) | |
[entityMappings] => Array | |
( | |
[a] => | |
) | |
[metaMappings] => Array | |
( | |
[id1] => id | |
) | |
[columnOwnerMap] => Array | |
( | |
[a_id0] => a | |
[id1] => a | |
) | |
[discriminatorColumns] => Array | |
( | |
) | |
[indexByMap] => Array | |
( | |
) | |
[declaringClasses] => Array | |
( | |
[a_id0] => Entity\A | |
) | |
[isIdentifierColumn] => Array | |
( | |
) | |
) | |
[_parameterMappings:Doctrine\ORM\Query\ParserResult:private] => Array | |
( | |
[id] => Array | |
( | |
[0] => 0 | |
) | |
) | |
) | |
[[Entity\B$CLASSMETADATA][1]] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\B | |
[namespace] => Entity | |
[rootEntityName] => Entity\B | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => id | |
[id] => 1 | |
) | |
[name] => Array | |
( | |
[fieldName] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => 1 | |
[unique] => | |
[columnName] => name | |
) | |
) | |
[fieldNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[columnNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => b | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\B | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\B | |
) | |
[name] => ReflectionProperty Object | |
( | |
[name] => name | |
[class] => Entity\B | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => | |
) | |
) | |
[namespace:Doctrine\Common\Cache\CacheProvider:private] => | |
) | |
[loadedMetadata:Doctrine\ORM\Mapping\ClassMetadataFactory:private] => Array | |
( | |
[Entity\A] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\A | |
[namespace] => Entity | |
[rootEntityName] => Entity\A | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => a_id | |
[id] => 1 | |
) | |
) | |
[fieldNames] => Array | |
( | |
[a_id] => id | |
) | |
[columnNames] => Array | |
( | |
[id] => a_id | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => a | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
[b] => Array | |
( | |
[fieldName] => b | |
[joinColumns] => Array | |
( | |
[0] => Array | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
) | |
) | |
[cascade] => Array | |
( | |
) | |
[inversedBy] => | |
[targetEntity] => Entity\B | |
[fetch] => 2 | |
[type] => 2 | |
[mappedBy] => | |
[isOwningSide] => 1 | |
[sourceEntity] => Entity\A | |
[isCascadeRemove] => | |
[isCascadePersist] => | |
[isCascadeRefresh] => | |
[isCascadeMerge] => | |
[isCascadeDetach] => | |
[sourceToTargetKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[joinColumnFieldNames] => Array | |
( | |
[id] => id | |
) | |
[targetToSourceKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[orphanRemoval] => | |
) | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\A | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\A | |
) | |
[b] => ReflectionProperty Object | |
( | |
[name] => b | |
[class] => Entity\A | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => Entity\A Object | |
( | |
[id:Entity\A:private] => | |
[b:Entity\A:private] => | |
) | |
) | |
[Entity\B] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\B | |
[namespace] => Entity | |
[rootEntityName] => Entity\B | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => id | |
[id] => 1 | |
) | |
[name] => Array | |
( | |
[fieldName] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => 1 | |
[unique] => | |
[columnName] => name | |
) | |
) | |
[fieldNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[columnNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => b | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\B | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\B | |
) | |
[name] => ReflectionProperty Object | |
( | |
[name] => name | |
[class] => Entity\B | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => | |
) | |
[Proxy\__CG__\Entity\B] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\B | |
[namespace] => Entity | |
[rootEntityName] => Entity\B | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => id | |
[id] => 1 | |
) | |
[name] => Array | |
( | |
[fieldName] => name | |
[type] => string | |
[length] => 255 | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => 1 | |
[unique] => | |
[columnName] => name | |
) | |
) | |
[fieldNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[columnNames] => Array | |
( | |
[id] => id | |
[name] => name | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => b | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\B | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\B | |
) | |
[name] => ReflectionProperty Object | |
( | |
[name] => name | |
[class] => Entity\B | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => | |
) | |
) | |
[initialized:Doctrine\ORM\Mapping\ClassMetadataFactory:private] => 1 | |
[reflectionService:Doctrine\ORM\Mapping\ClassMetadataFactory:private] => Doctrine\Common\Persistence\Mapping\RuntimeReflectionService Object | |
( | |
) | |
) | |
[repositories:Doctrine\ORM\EntityManager:private] => Array | |
( | |
) | |
[unitOfWork:Doctrine\ORM\EntityManager:private] => Doctrine\ORM\UnitOfWork Object | |
( | |
[identityMap:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
[Entity\A] => Array | |
( | |
[5] => Entity\A Object | |
*RECURSION* | |
) | |
[Entity\B] => Array | |
( | |
[5] => Proxy\__CG__\Entity\B Object | |
*RECURSION* | |
) | |
) | |
[entityIdentifiers:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
[00000000464208cc0000000043f3b9d1] => Array | |
( | |
[id] => 5 | |
) | |
[00000000464208b10000000043f3b9d1] => Array | |
( | |
[id] => 5 | |
) | |
) | |
[originalEntityData:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
[00000000464208cc0000000043f3b9d1] => Array | |
( | |
[id] => 5 | |
[b] => Proxy\__CG__\Entity\B Object | |
*RECURSION* | |
) | |
) | |
[entityChangeSets:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[entityStates:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
[00000000464208cc0000000043f3b9d1] => 1 | |
[00000000464208b10000000043f3b9d1] => 1 | |
) | |
[scheduledForDirtyCheck:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[entityInsertions:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[entityUpdates:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[extraUpdates:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[entityDeletions:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[collectionDeletions:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[collectionUpdates:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[visitedCollections:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[em:Doctrine\ORM\UnitOfWork:private] => Doctrine\ORM\EntityManager Object | |
*RECURSION* | |
[commitOrderCalculator:Doctrine\ORM\UnitOfWork:private] => | |
[persisters:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
[Entity\B] => Doctrine\ORM\Persisters\BasicEntityPersister Object | |
*RECURSION* | |
) | |
[collectionPersisters:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[evm:Doctrine\ORM\UnitOfWork:private] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
[orphanRemovals:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[readOnlyObjects:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[eagerLoadingEntities:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
) | |
[eventManager:Doctrine\ORM\EntityManager:private] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
[hydrators:Doctrine\ORM\EntityManager:private] => Array | |
( | |
[1] => Doctrine\ORM\Internal\Hydration\ObjectHydrator Object | |
( | |
[_ce:Doctrine\ORM\Internal\Hydration\ObjectHydrator:private] => Array | |
( | |
[Entity\A] => Doctrine\ORM\Mapping\ClassMetadata Object | |
( | |
[name] => Entity\A | |
[namespace] => Entity | |
[rootEntityName] => Entity\A | |
[customRepositoryClassName] => | |
[isMappedSuperclass] => | |
[parentClasses] => Array | |
( | |
) | |
[subClasses] => Array | |
( | |
) | |
[namedQueries] => Array | |
( | |
) | |
[identifier] => Array | |
( | |
[0] => id | |
) | |
[inheritanceType] => 1 | |
[generatorType] => 4 | |
[fieldMappings] => Array | |
( | |
[id] => Array | |
( | |
[fieldName] => id | |
[type] => integer | |
[length] => | |
[precision] => 0 | |
[scale] => 0 | |
[nullable] => | |
[unique] => | |
[columnName] => a_id | |
[id] => 1 | |
) | |
) | |
[fieldNames] => Array | |
( | |
[a_id] => id | |
) | |
[columnNames] => Array | |
( | |
[id] => a_id | |
) | |
[discriminatorValue] => | |
[discriminatorMap] => Array | |
( | |
) | |
[discriminatorColumn] => | |
[table] => Array | |
( | |
[name] => a | |
) | |
[lifecycleCallbacks] => Array | |
( | |
) | |
[associationMappings] => Array | |
( | |
[b] => Array | |
( | |
[fieldName] => b | |
[joinColumns] => Array | |
( | |
[0] => Array | |
( | |
[name] => id | |
[referencedColumnName] => id | |
[unique] => | |
[nullable] => 1 | |
[onDelete] => | |
[columnDefinition] => | |
) | |
) | |
[cascade] => Array | |
( | |
) | |
[inversedBy] => | |
[targetEntity] => Entity\B | |
[fetch] => 2 | |
[type] => 2 | |
[mappedBy] => | |
[isOwningSide] => 1 | |
[sourceEntity] => Entity\A | |
[isCascadeRemove] => | |
[isCascadePersist] => | |
[isCascadeRefresh] => | |
[isCascadeMerge] => | |
[isCascadeDetach] => | |
[sourceToTargetKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[joinColumnFieldNames] => Array | |
( | |
[id] => id | |
) | |
[targetToSourceKeyColumns] => Array | |
( | |
[id] => id | |
) | |
[orphanRemoval] => | |
) | |
) | |
[isIdentifierComposite] => | |
[containsForeignIdentifier] => | |
[idGenerator] => Doctrine\ORM\Id\IdentityGenerator Object | |
( | |
[_seqName:Doctrine\ORM\Id\IdentityGenerator:private] => | |
) | |
[sequenceGeneratorDefinition] => | |
[tableGeneratorDefinition] => | |
[changeTrackingPolicy] => 1 | |
[isVersioned] => | |
[versionField] => | |
[reflClass] => ReflectionClass Object | |
( | |
[name] => Entity\A | |
) | |
[isReadOnly] => | |
[reflFields] => Array | |
( | |
[id] => ReflectionProperty Object | |
( | |
[name] => id | |
[class] => Entity\A | |
) | |
[b] => ReflectionProperty Object | |
( | |
[name] => b | |
[class] => Entity\A | |
) | |
) | |
[_prototype:Doctrine\ORM\Mapping\ClassMetadataInfo:private] => Entity\A Object | |
( | |
[id:Entity\A:private] => | |
[b:Entity\A:private] => | |
) | |
) | |
) | |
[_identifierMap:Doctrine\ORM\Internal\Hydration\ObjectHydrator:private] => Array | |
( | |
) | |
[_resultPointers:Doctrine\ORM\Internal\Hydration\ObjectHydrator:private] => Array | |
( | |
) | |
[_idTemplate:Doctrine\ORM\Internal\Hydration\ObjectHydrator:private] => Array | |
( | |
[a] => | |
) | |
[_resultCounter:Doctrine\ORM\Internal\Hydration\ObjectHydrator:private] => 1 | |
[_rootAliases:Doctrine\ORM\Internal\Hydration\ObjectHydrator:private] => Array | |
( | |
[a] => 1 | |
) | |
[_initializedCollections:Doctrine\ORM\Internal\Hydration\ObjectHydrator:private] => Array | |
( | |
) | |
[_existingCollections:Doctrine\ORM\Internal\Hydration\ObjectHydrator:private] => Array | |
( | |
) | |
[_rsm:protected] => | |
[_em:protected] => Doctrine\ORM\EntityManager Object | |
*RECURSION* | |
[_platform:protected] => Doctrine\DBAL\Platforms\MySqlPlatform Object | |
( | |
[doctrineTypeMapping:protected] => | |
[doctrineTypeComments:protected] => | |
[_eventManager:protected] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
) | |
[_uow:protected] => Doctrine\ORM\UnitOfWork Object | |
( | |
[identityMap:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
[Entity\A] => Array | |
( | |
[5] => Entity\A Object | |
*RECURSION* | |
) | |
[Entity\B] => Array | |
( | |
[5] => Proxy\__CG__\Entity\B Object | |
*RECURSION* | |
) | |
) | |
[entityIdentifiers:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
[00000000464208cc0000000043f3b9d1] => Array | |
( | |
[id] => 5 | |
) | |
[00000000464208b10000000043f3b9d1] => Array | |
( | |
[id] => 5 | |
) | |
) | |
[originalEntityData:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
[00000000464208cc0000000043f3b9d1] => Array | |
( | |
[id] => 5 | |
[b] => Proxy\__CG__\Entity\B Object | |
*RECURSION* | |
) | |
) | |
[entityChangeSets:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[entityStates:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
[00000000464208cc0000000043f3b9d1] => 1 | |
[00000000464208b10000000043f3b9d1] => 1 | |
) | |
[scheduledForDirtyCheck:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[entityInsertions:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[entityUpdates:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[extraUpdates:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[entityDeletions:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[collectionDeletions:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[collectionUpdates:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[visitedCollections:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[em:Doctrine\ORM\UnitOfWork:private] => Doctrine\ORM\EntityManager Object | |
*RECURSION* | |
[commitOrderCalculator:Doctrine\ORM\UnitOfWork:private] => | |
[persisters:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
[Entity\B] => Doctrine\ORM\Persisters\BasicEntityPersister Object | |
*RECURSION* | |
) | |
[collectionPersisters:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[evm:Doctrine\ORM\UnitOfWork:private] => Doctrine\Common\EventManager Object | |
( | |
[_listeners:Doctrine\Common\EventManager:private] => Array | |
( | |
) | |
) | |
[orphanRemovals:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[readOnlyObjects:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
[eagerLoadingEntities:Doctrine\ORM\UnitOfWork:private] => Array | |
( | |
) | |
) | |
[_cache:protected] => Array | |
( | |
) | |
[_stmt:protected] => | |
[_hints:protected] => Array | |
( | |
[deferEagerLoad] => 1 | |
[fetchAlias] => a | |
[fetchMode] => Array | |
( | |
[Entity\A] => Array | |
( | |
[b] => 2 | |
) | |
) | |
) | |
) | |
) | |
[proxyFactory:Doctrine\ORM\EntityManager:private] => Doctrine\ORM\Proxy\ProxyFactory Object | |
( | |
[_em:Doctrine\ORM\Proxy\ProxyFactory:private] => Doctrine\ORM\EntityManager Object | |
*RECURSION* | |
[_autoGenerate:Doctrine\ORM\Proxy\ProxyFactory:private] => 1 | |
[_proxyNamespace:Doctrine\ORM\Proxy\ProxyFactory:private] => Proxy | |
[_proxyDir:Doctrine\ORM\Proxy\ProxyFactory:private] => /home/ivan/sites/doctrine/doctrine-doctrine2-7d8c6c8/tmp/Proxy | |
) | |
[expressionBuilder:Doctrine\ORM\EntityManager:private] => | |
[closed:Doctrine\ORM\EntityManager:private] => | |
[filterCollection:Doctrine\ORM\EntityManager:private] => | |
) | |
[_queuedInserts:protected] => Array | |
( | |
) | |
[_rsm:protected] => | |
[_columnTypes:protected] => Array | |
( | |
) | |
[_insertSql:Doctrine\ORM\Persisters\BasicEntityPersister:private] => | |
[_selectColumnListSql:protected] => | |
[_selectJoinSql:protected] => | |
[_sqlAliasCounter:protected] => 0 | |
[_sqlTableAliases:protected] => Array | |
( | |
) | |
) | |
[_identifier:Proxy\__CG__\Entity\B:private] => Array | |
( | |
[id] => 5 | |
) | |
[__isInitialized__] => | |
[id:Entity\B:private] => | |
[name:Entity\B:private] => | |
) | |
) | |
--------------------------------- | |
DQL with join | |
SELECT a, b FROM Entity\A a LEFT JOIN a.b b WHERE a.id = :id | |
SQL with join | |
SELECT a0_.a_id AS a_id0, b1_.id AS id1, b1_.name AS name2, a0_.id AS id3 FROM a a0_ LEFT JOIN b b1_ ON a0_.id = b1_.id WHERE a0_.a_id = ? | |
Dump A with join | |
--------------------------------- | |
Entity\A Object | |
( | |
[id:Entity\A:private] => 5 | |
[b:Entity\A:private] => Entity\B Object | |
( | |
[id:Entity\B:private] => 10 | |
[name:Entity\B:private] => cool | |
) | |
) | |
--------------------------------- | |
wrong | cool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; | |
CREATE TABLE IF NOT EXISTS `a` ( | |
`a_id` int(11) NOT NULL AUTO_INCREMENT, | |
`id` int(11) DEFAULT NULL, | |
PRIMARY KEY (`a_id`), | |
KEY `IDX_E8B7BE43BF396750` (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; | |
INSERT INTO `a` (`a_id`, `id`) VALUES | |
(5, 10); | |
CREATE TABLE IF NOT EXISTS `b` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ; | |
INSERT INTO `b` (`id`, `name`) VALUES | |
(5, 'wrong'), | |
(10, 'cool'); | |
ALTER TABLE `a` | |
ADD CONSTRAINT `FK_E8B7BE43BF396750` FOREIGN KEY (`id`) REFERENCES `b` (`id`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$qb = $this->em->createQueryBuilder() | |
->select('a') | |
->from('Entity\\A', 'a') | |
->where('a.id = :id') | |
->setParameter('id', 5); | |
$query = $qb->getQuery(); | |
$a = $query->getOneOrNullResult(); | |
$b = $a->getB(); | |
print_r($b->getName()); | |
$this->em->clear(); | |
echo ' | '; | |
$qb2 = $this->em->createQueryBuilder() | |
->select('a', 'b') | |
->from('Entity\\A', 'a') | |
->leftJoin('a.b', 'b') | |
->where('a.id = :id') | |
->setParameter('id', 5); | |
$query2 = $qb2->getQuery(); | |
$a2 = $query2->getOneOrNullResult(); | |
$b2 = $a2->getB(); | |
print_r($b2->getName()); | |
// Doctrine Command Line Interface version 2.2.1 | |
// Result wrong | cool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment