RedUNIT\Base\Xnull::ColumnType PHP Method

ColumnType() public method

Normally if you store NULL, the smallest type (bool/set) will be selected. However in case of a foreign key type INT should be selected because fks columns require matching types.
public ColumnType ( ) : void
return void
    public function ColumnType()
    {
        $book = R::dispense('book');
        $page = R::dispense('page');
        $book->ownPage[] = $page;
        R::store($book);
        pass();
        asrt($page->getMeta('cast.book_id'), 'id');
    }