src/xPDO/Transport/xPDOObjectVehicle.php
public function _uninstallRelated(& $transport, & $parent, $element, $options) {
        $uninstalled = true;
        if (is_object($parent) && isset ($element[xPDOTransport::RELATED_OBJECTS]) && is_array($element[xPDOTransport::RELATED_OBJECTS])) {
            $uninstalled = false;
            foreach ($element[xPDOTransport::RELATED_OBJECTS] as $rAlias => $rVehicles) {
                $parentClass = $parent->_class;
                $rMeta = $transport->xpdo->getFKDefinition($parentClass, $rAlias);
                if ($rMeta) {
                    $results = array();
                    foreach ($rVehicles as $rKey => $rVehicle) {
                        $results[] = $this->_uninstallObject($transport, $options, $rVehicle, $parent, $rMeta);
                    }
                    $uninstalled = (array_search(false, $results) === false);
                }
            }
        }
        return $uninstalled;
    }
public function _uninstallRelated(& $transport, & $parent, $element, $options) {
        $uninstalled = true;
        if (is_object($parent) && isset ($element[xPDOTransport::RELATED_OBJECTS]) && is_array($element[xPDOTransport::RELATED_OBJECTS])) {
            $uninstalled = false;
            foreach ($element[xPDOTransport::RELATED_OBJECTS] as $rAlias => $rVehicles) {
                $parentClass = $parent->_class;
                $rMeta = $transport->xpdo->getFKDefinition($parentClass, $rAlias);
                if ($rMeta) {
                    $results = array();
                    foreach ($rVehicles as $rKey => $rVehicle) {
                        $results[] = $this->_uninstallObject($transport, $options, $rVehicle, $parent, $rMeta);
                    }
                    $uninstalled = (array_search(false, $results) === false);
                }
            }
        }
        return $uninstalled;
    }
public function _uninstallRelated ( & $ transport , & $ parent , $ element , $ options ) { $ uninstalled = true ; if ( is_object ( $ parent ) && isset ( $ element [ xPDOTransport :: RELATED_OBJECTS ] ) && is_array ( $ element [ xPDOTransport :: RELATED_OBJECTS ] ) ) { $ uninstalled = false ; foreach ( $ element [ xPDOTransport :: RELATED_OBJECTS ] as $ rAlias => $ rVehicles ) { $ parentClass = $ parent -> _class ; $ rMeta = $ transport -> xpdo -> getFKDefinition ( $ parentClass , $ rAlias ) ; if ( $ rMeta ) { $ results = array ( ) ; foreach ( $ rVehicles as $ rKey => $ rVehicle ) { $ results [ ] = $ this -> _uninstallObject ( $ transport , $ options , $ rVehicle , $ parent , $ rMeta ) ; } $ uninstalled = ( array_search ( false , $ results ) === false ) ; } } } return $ uninstalled ; }
Uninstalls related objects from the vehicle.
Uninstalls related objects from the vehicle .