private function getSubClassFields($meta, $value)
    {
        foreach ($meta->subClasses as $subClass) {
            $delimiter = strpos($subClass, '/') > 0 ? '/' : '\\';
            $temp = explode($delimiter, $subClass);
            $tempMeta = $this->em->getClassMetadata($subClass);
            if (end($temp) == $value) {
                return [
                    'table'       => $subClass,
                    'parentField' => $meta->getIdentifierColumnNames()[0],
                    'targetField' => $tempMeta->getIdentifierColumnNames()[0],
                    'meta'        => $tempMeta,
                ];
            }
        }
    }
private function getSubClassFields($meta, $value)
    {
        foreach ($meta->subClasses as $subClass) {
            $delimiter = strpos($subClass, '/') > 0 ? '/' : '\\';
            $temp = explode($delimiter, $subClass);
            $tempMeta = $this->em->getClassMetadata($subClass);
            if (end($temp) == $value) {
                return [
                    'table'       => $subClass,
                    'parentField' => $meta->getIdentifierColumnNames()[0],
                    'targetField' => $tempMeta->getIdentifierColumnNames()[0],
                    'meta'        => $tempMeta,
                ];
            }
        }
    }
private function getSubClassFields ( $ meta , $ value ) { foreach ( $ meta -> subClasses as $ subClass ) { $ delimiter = strpos ( $ subClass , '/' ) > 0 ? '/' : '\\' ; $ temp = explode ( $ delimiter , $ subClass ) ; $ tempMeta = $ this -> em -> getClassMetadata ( $ subClass ) ; if ( end ( $ temp ) == $ value ) { return [ 'table' => $ subClass , 'parentField' => $ meta -> getIdentifierColumnNames ( ) [ 0 ] , 'targetField' => $ tempMeta -> getIdentifierColumnNames ( ) [ 0 ] , 'meta' => $ tempMeta , ] ; } } }
Get the fields to create a join with a subClass.

@param $meta
@param $value

@return string
Get the fields to create a join with a subClass .