- function __construct(Mapper $mapper, $class) {
- $this->class = $class;
- $this->mapper = $mapper;
- $this->mapping = $mapper->mapOf($class);
- $this->gateway = $this->mapping->getGateway();
- }
-
- function getMapper() {
- return $this->mapper;
+ function __construct(MapInterface $map) {
+ $this->map = $map;
+ $this->gateway = $map->getGateway();
}
function find($where = [], $order = null, $limit = null, $offset = null) {
/* @var pq\Gateway\Rowset $rowset */
$rowset = $this->gateway->find($where, $order, $limit, $offset);
}
function find($where = [], $order = null, $limit = null, $offset = null) {
/* @var pq\Gateway\Rowset $rowset */
$rowset = $this->gateway->find($where, $order, $limit, $offset);
$row = $cache->asRow($object)->delete();
$cache->resetObject($row);
$cache->resetRow($object);
}
$row = $cache->asRow($object)->delete();
$cache->resetObject($row);
$cache->resetRow($object);
}