Doctrine\ORM\Tools\SchemaTool::getDefiningClass
Get the class metadata that is responsible for the definition of the referenced column name.
Previously this was a simple task, but with DDC-117 this problem is actually recursive. If its not a simple field, go through all identifier field names that are associations recursivly and find that referenced column name. TODO: Is there any way to make this code more pleasing?
Signature
private function getDefiningClass(ClassMetadata
$class,
string
$referencedColumnName )
Parameters
$class
— object
$referencedColumnName
— string
Returns
- array(ClassMetadata
- referencedFieldName)