| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function initialize() |
||
| 41 | { |
||
| 42 | if (! $this->initialized) { |
||
| 43 | $query = $this->builder->toBase(); |
||
| 44 | $sql = $query->toSql(); |
||
| 45 | $bindings = $query->getBindings(); |
||
| 46 | $conn = $query->getConnection(); |
||
| 47 | $this->statement = $conn->getPdo()->prepare($sql); |
||
| 48 | $this->statement->execute($conn->prepareBindings($bindings)); |
||
| 49 | |||
| 50 | $this->prototype = $this->builder->getModel()->newFromBuilder(); |
||
| 51 | } |
||
| 52 | |||
| 53 | $this->initialized = true; |
||
| 54 | } |
||
| 55 | |||
| 82 |