public function isLocalColumnsRequired()
    {
        foreach ($this->localColumns as $columnName) {
            if (!$this->parentTable->getColumn($columnName)->isNotNull()) {
                return false;
            }
        }

        return true;
    }
public function isLocalColumnsRequired()
    {
        foreach ($this->localColumns as $columnName) {
            if (!$this->parentTable->getColumn($columnName)->isNotNull()) {
                return false;
            }
        }

        return true;
    }
public function isLocalColumnsRequired ( ) { foreach ( $ this -> localColumns as $ columnName ) { if ( ! $ this -> parentTable -> getColumn ( $ columnName ) -> isNotNull ( ) ) { return false ; } } return true ; }
Returns whether this foreign key uses only required local columns.

@return boolean
Returns whether this foreign key uses only required local columns .