RedUNIT\Base\Bean::testDeleteOwnListWithEmptyArray PHP Method

testDeleteOwnListWithEmptyArray() public method

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