RedUNIT\Base\Bean::testDeleteXOwnListWithEmptyArray PHP Method

testDeleteXOwnListWithEmptyArray() public method

You CAN delete an x-own-list by assiging an empty array.
    public function testDeleteXOwnListWithEmptyArray()
    {
        $book = $this->_createBook();
        asrt(isset($book->xownPage), FALSE);
        //not loaded yet, lazy loading
        asrt(count($book->xownPage), 2);
        //when loaded has 2
        $book->xownPage = array();
        //remove all
        R::store($book);
        asrt(isset($book->xownPage), FALSE);
        //not loaded yet, lazy loading
        asrt(count($book->xownPage), 0);
    }