. */ /** * Doctrine_Record_State_TestCase * * @package Doctrine * @author Konsta Vesterinen * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @category Object Relational Mapping * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ */ class Doctrine_Record_SaveBlankRecord_TestCase extends Doctrine_UnitTestCase { public function testSaveBlankRecord() { // This will not save because no fields have been modified? $user = new User(); //$user->state('TDIRTY'); i thought this would force it but i thought wrong :) $user->save(); $this->assertEqual($user['id'], 2); } }