private function searchAssociationField($associationsByTargetClass, $parentTable, $value)
    {
        foreach ($associationsByTargetClass as $table => $association) {
            if ($table == $parentTable && $association['inversedBy'] == $value) {
                return $association['fieldName'];
            }
        }
    }
private function searchAssociationField($associationsByTargetClass, $parentTable, $value)
    {
        foreach ($associationsByTargetClass as $table => $association) {
            if ($table == $parentTable && $association['inversedBy'] == $value) {
                return $association['fieldName'];
            }
        }
    }
private function searchAssociationField ( $ associationsByTargetClass , $ parentTable , $ value ) { foreach ( $ associationsByTargetClass as $ table => $ association ) { if ( $ table == $ parentTable && $ association [ 'inversedBy' ] == $ value ) { return $ association [ 'fieldName' ] ; } } }
Search the field in the associations list.

@param $associationsByTargetClass
@param string $parentTable
@param $value

@return string
Search the field in the associations list .