private function isRelationForeignKeyNullable(Relation $relation)
    {
        $reflectionObj = new \ReflectionObject($relation);
        if (!$reflectionObj->hasProperty('foreignKey')) {
            return false;
        }
        $fkProp = $reflectionObj->getProperty('foreignKey');
        $fkProp->setAccessible(true);

        return isset($this->nullableColumns[$fkProp->getValue($relation)]);
    }
private function isRelationForeignKeyNullable(Relation $relation)
    {
        $reflectionObj = new \ReflectionObject($relation);
        if (!$reflectionObj->hasProperty('foreignKey')) {
            return false;
        }
        $fkProp = $reflectionObj->getProperty('foreignKey');
        $fkProp->setAccessible(true);

        return isset($this->nullableColumns[$fkProp->getValue($relation)]);
    }
private function isRelationForeignKeyNullable ( Relation $ relation ) { $ reflectionObj = new \ ReflectionObject ( $ relation ) ; if ( ! $ reflectionObj -> hasProperty ( 'foreignKey' ) ) { return false ; } $ fkProp = $ reflectionObj -> getProperty ( 'foreignKey' ) ; $ fkProp -> setAccessible ( true ) ; return isset ( $ this -> nullableColumns [ $ fkProp -> getValue ( $ relation ) ] ) ; }
Check if the foreign key of the relation is nullable

@param Relation $relation

@return bool
Check if the foreign key of the relation is nullable