Advertisement
Guest User

Untitled

a guest
Apr 14th, 2013
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. 61:            if ($this->data === NULL) {
  2. 62:                $this->data = array();
  3. 63:                foreach ($this->selection as $row) {
  4. 64:                    if ($this->refTable !== NULL) {
  5. 65:                        $row = $this->refColumn !== NULL
  6. 66:                            ? $row->ref($this->refTable, $this->refColumn)
  7. 67:                            : $row->{$this->refTable};
  8. 68:                    }
  9. 69:    
  10. 70:                    $class = $this->entity;
  11. 71:                    $entity = new $class($row);
  12. 72:                    $primary = $row->getPrimary(FALSE);
  13. 73:    
  14. 74:                    if ($primary !== NULL && is_scalar($primary)) {
  15. 75:                        $this->data[$primary] = $entity;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement