RedUNIT\Base\Bean::testCANTDeleteAliasedOwnListWithNULL PHP Method

testCANTDeleteAliasedOwnListWithNULL() public method

You cannot delete an aliased own-list by assigning NULL.
    public function testCANTDeleteAliasedOwnListWithNULL()
    {
        $book = $this->_createBook();
        asrt(isset($book->alias('magazine')->ownAd), FALSE);
        //not loaded yet, lazy loading
        asrt(count($book->alias('magazine')->ownAd), 3);
        //when loaded has 2
        $book->alias('magazine')->ownAd = NULL;
        //remove all
        R::store($book);
        asrt(isset($book->alias('magazine')->ownAd), FALSE);
        //not loaded yet, lazy loading
        asrt(count($book->alias('magazine')->ownAd), 3);
    }