RedUNIT\Base\Bean::testCANTDeleteXOwnListWithNULL PHP Метод

testCANTDeleteXOwnListWithNULL() публичный Метод

You cannot delete an x-own-list by assigning NULL.
public testCANTDeleteXOwnListWithNULL ( ) : void
Результат void
    public function testCANTDeleteXOwnListWithNULL()
    {
        $book = $this->_createBook();
        asrt(isset($book->xownPage), FALSE);
        //not loaded yet, lazy loading
        asrt(count($book->xownPage), 2);
        //when loaded has 2
        $book->xownPage = NULL;
        //remove all
        R::store($book);
        asrt(isset($book->xownPage), FALSE);
        //not loaded yet, lazy loading
        asrt(count($book->xownPage), 2);
    }