Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder::createManyToOne
Create a ManyToOne Assocation Builder.
Note: This method does not add the association, you have to call build() on the AssociationBuilder.
Signature
public function createManyToOne(string
$name,
string
$targetEntity )
Parameters
$name
— string$targetEntity
— string
Returns
- AssociationBuilder