source/Spiral/ORM/Schemas/Relations/AbstractSchema.php
public function isConstrained()
    {
        $source = $this->definition->sourceContext();
        $target = $this->definition->targetContext();
        if (empty($target)) {
            return false;
        }

        if ($source->getDatabase() != $target->getDatabase()) {
            //Unable to create constrains for records in different databases
            return false;
        }

        return $this->option(Record::CREATE_CONSTRAINT);
    }
public function isConstrained()
    {
        $source = $this->definition->sourceContext();
        $target = $this->definition->targetContext();
        if (empty($target)) {
            return false;
        }

        if ($source->getDatabase() != $target->getDatabase()) {
            //Unable to create constrains for records in different databases
            return false;
        }

        return $this->option(Record::CREATE_CONSTRAINT);
    }
public function isConstrained ( ) { $ source = $ this -> definition -> sourceContext ( ) ; $ target = $ this -> definition -> targetContext ( ) ; if ( empty ( $ target ) ) { return false ; } if ( $ source -> getDatabase ( ) != $ target -> getDatabase ( ) ) { //Unable to create constrains for records in different databases return false ; } return $ this -> option ( Record :: CREATE_CONSTRAINT ) ; }
Check if relation requests foreign key constraints to be created.

@return bool
Check if relation requests foreign key constraints to be created .