/**
  * @expectedException \Propel\Runtime\Exception\BadMethodCallException
  */
 public function testDeleteOnReadOnlyEntityThrowsException()
 {
     $col = new ObjectCollection();
     $col->setModel('Propel\\Tests\\Bookstore\\Country');
     $cv = new Country();
     $cv->setNew(false);
     $col[] = $cv;
     $col->delete();
 }
Пример #2
0
 /**
  * @expectedException \Propel\Runtime\Exception\BadMethodCallException
  */
 public function testDeleteOnReadOnlyEntityThrowsException()
 {
     $col = new ArrayCollection();
     $col->setModel('Country');
     $cv = new Country();
     $cv->setNew(false);
     $col[] = $cv;
     $col->delete();
 }