3 namespace RedUNIT\Base;
5 use RedUNIT\Base as Base;
6 use RedBeanPHP\Facade as R;
11 * Tests whether this specific issue on github has been resolved.
12 * Checking 'own' relationship, makes it impossible to trash a bean.
14 * @file RedUNIT/Base/Issue90.php
15 * @desc Issue #90 - cannot trash bean with ownproperty if checked in model.
16 * @author Gabor de Mooij and the RedBeanPHP Community
17 * @license New BSD/GPLv2
19 * (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community.
20 * This source file is subject to the New BSD/GPLv2 License that is bundled
21 * with this source code in the file license.txt.
23 class Issue90 extends Base
27 * Checking 'own' relationship, makes it impossible to trash a bean.
31 public function testIssue90()
33 $s = R::dispense( 'box' );
35 $f = R::dispense( 'bottle' );
38 $s2 = R::dispense( 'box' );