Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 2.0-BETA4
-
Fix Version/s: 2.0-RC1
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
The problem is rather trivial - if no joinColumns or inverseJoinColumns provided for the JoinTable annotation declaration, then PHP will complain on lines 215/225 of Doctrine\ORM\Mapping\Driver\AnnotationDriver. The easiest way to eliminate this problem is to simply initialize these fields in the annotation-class:
DoctrineAnnotations.php
final class JoinTable extends Annotation { public $name; public $schema; public $joinColumns = array(); public $inverseJoinColumns = array(); }
Fixed