Skip to content

@zgoniaiko /A.php
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Doctrine doesn't recognize related object without join
<?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;
}
}
<?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;
}
}
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
(