/** * Test if adding SimpleModles to a shared list will auto unbox them. */ public function testSharedListsAutoUnbox() { $boxedBean = R::dispense('boxedbean'); $bean = R::dispense('bean'); $model = new SimpleModel(); $model->loadBean($boxedBean); $bean->ownBoxedbeanList[] = $model; try { R::store($bean); pass(); } catch (\Exception $e) { fail(); } }