{$name.'Cache'} = 'cached'; } } }; $user->email = 'ada@example.com'; $user->cacheAll(); // save() would otherwise write them as columns ("no such column: ordersCache") $this->assertSame(['email' => 'ada@example.com'], $user->getAttributes()); } }