Add SqlCriteria.join(). Refactoring SqlResultCollection (add SqlResultCollection).
This commit is contained in:
19
model/SqlResultCollection.php
Normal file
19
model/SqlResultCollection.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class SqlResultCollection extends ArrayIterator
|
||||
{
|
||||
private $items;
|
||||
|
||||
public function __construct($items)
|
||||
{
|
||||
$this->items = $items;
|
||||
foreach ($items as $item) {
|
||||
parent::append($item);
|
||||
}
|
||||
}
|
||||
|
||||
public function fetchAll()
|
||||
{
|
||||
return $this->items;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user