public static function findDataClass($formType)
    {
        if ($dataClass = $formType->getConfig()->getDataClass()) {
            return $dataClass;
        } else {
            if ($parent = $formType->getParent()) {
                return self::findDataClass($parent);
            } else {
                return null;
            }
        }
    }
public static function findDataClass($formType)
    {
        if ($dataClass = $formType->getConfig()->getDataClass()) {
            return $dataClass;
        } else {
            if ($parent = $formType->getParent()) {
                return self::findDataClass($parent);
            } else {
                return null;
            }
        }
    }
public static function findDataClass ( $ formType ) { if ( $ dataClass = $ formType -> getConfig ( ) -> getDataClass ( ) ) { return $ dataClass ; } else { if ( $ parent = $ formType -> getParent ( ) ) { return self :: findDataClass ( $ parent ) ; } else { return null ; } } }
Returns the dataClass of the form or its parents, if any

@param mixed $formType

@return string|null the dataClass
Returns the dataClass of the form or its parents if any