コード例 #1
0
 /**
  * @expectedException ActiveRecord\ActiveRecordException
  */
 public function test_delete_with_no_primary_key_defined()
 {
     Author::table()->pk = array();
     $author = author::first();
     $author->delete();
 }
コード例 #2
0
 /**
  * @expectedException ActiveRecord\ActiveRecordException
  */
 public function testDeleteWithNoPrimaryKeyDefined()
 {
     Author::table()->pk = array();
     $author = author::first();
     $author->delete();
 }