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

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

        return true;
    }
public function isLocalColumnsRequired ( ) { foreach ( $ this -> getLocalColumns ( ) as $ columnName ) { if ( ! $ this -> getTable ( ) -> getColumn ( $ columnName ) -> isNotNull ( ) ) { return false ; } } return true ; }
Whether this foreign key uses a required column, or a list of required columns.

@return boolean
Whether this foreign key uses a required column or a list of required columns .