コード例 #1
0
 function testFindByIdsReturnEmptyIteratorIfNoIds()
 {
     $object1 = $this->creator->createOneTableObject();
     $object2 = $this->creator->createOneTableObject();
     $rs = lmbActiveRecord::findByIds('TestOneTableObject', array());
     $rs->rewind();
     $this->assertFalse($rs->valid());
     //testing convenient alias
     $rs = TestOneTableObject::findByIds(array());
     $rs->rewind();
     $this->assertFalse($rs->valid());
 }