public function testIssue11_DefaultValuesArePersistedInDatabase() { $animal = new AnimalWithNameDefault(array('type' => 'horse')); $this->assertEquals($animal->name, 'blargh'); $animal->save(); $this->assertRowCount(1, $this->connection()->table('animal')->query(array('id' => $animal->id, 'type' => 'horse', 'name' => 'blargh'))); $horse = AnimalWithNameDefault::byId(1); $this->assertEquals($horse->name, 'blargh'); }