public function __construct(NStatement $statement) { $data = array(); foreach ($this as $key => $value) { $data[$key] = $value; unset($this->$key); } foreach ($statement->normalizeRow($data) as $key => $value) { $this->$key = $value; } }
public function __construct(NStatement $statement) { $statement->normalizeRow($this); }