1 | <?php |
||
29 | class RawFinder extends Finder |
||
30 | { |
||
31 | |||
32 | 5 | public function __construct($model, $em = null, $mangan = null) |
|
33 | { |
||
34 | 5 | parent::__construct($model, $em, $mangan); |
|
35 | // Cannot use cursors in raw finder, as it will clash with PkManager |
||
36 | 5 | $this->withCursor(false); |
|
37 | 5 | } |
|
38 | |||
39 | /** |
||
40 | * Create raw finder instance. |
||
41 | * |
||
42 | * @param AnnotatedInterface $model |
||
43 | * @param EntityManagerInterface $em |
||
44 | * @param Mangan $mangan |
||
45 | * @return FinderInterface |
||
46 | */ |
||
47 | public static function create(AnnotatedInterface $model, $em = null, Mangan $mangan = null) |
||
51 | |||
52 | 5 | protected function populateRecord($data) |
|
56 | |||
57 | 5 | protected function createModel($data) |
|
65 | |||
66 | } |
||
67 |