public function getConstraints()
    {
        if ($this->relation instanceof HasMany) {
            return [
                $this->relation->getForeignKeyName() => $this->relation->getParentKey(),
            ];
        }

        return false;
    }
public function getConstraints()
    {
        if ($this->relation instanceof HasMany) {
            return [
                $this->relation->getForeignKeyName() => $this->relation->getParentKey(),
            ];
        }

        return false;
    }
public function getConstraints ( ) { if ( $ this -> relation instanceof HasMany ) { return [ $ this -> relation -> getForeignKeyName ( ) => $ this -> relation -> getParentKey ( ) , ] ; } return false ; }
Get constraints.

@return array|bool
Get constraints .