[FLOW3-general] Join column not created for OneToOne relationship

Jackie Stallard jstallard at internode.on.net
Tue Jan 3 05:44:09 CET 2012


Hi

I'm new to Flow3 and am having difficulty creating a OneToOne 
unidirectional mapping. Doctrine updates with no errors but does not 
create a join column in my table.

/**
  * @FLOW3\Scope("prototype")
  * @FLOW3\Entity
  */
class CommunicationsDeviceTest {

         /**
          * @ORM\OneToOne(targetEntity="CommunicationsTypeTest")
          * @ORM\JoinColumn(name="communicationsType_id", 
referencedColumnName="id")
          */
         protected $communicationsType;
etc.
}

/**
  * @FLOW3\Scope("prototype")
  * @FLOW3\Entity
  */
class CommunicationsTypeTest {

         /**
          * The id
          * @var integer
          * @ORM\Id
          * @ORM\GeneratedValue
          */
         protected $id;

}

This follows the example on the Doctrine site. It looks simple. Can't 
figure out why it doesn't work...

Thanking you in advance

Jackie




More information about the FLOW3-general mailing list