···136136 foreach ($this->validators as $validate)
137137 $this->$validate($reflection->getStaticPropertyValue($validate));
138138139139+ $this->record->clear_model();
139140 return $this->record;
140141 }
141142···641642 public function __construct(Model $model)
642643 {
643644 $this->model = $model;
645645+ }
646646+647647+ /**
648648+ * Nulls $model so we don't get pesky circular references. $model is only needed during the
649649+ * validation process and so can be safely cleared once that is done.
650650+ */
651651+ public function clear_model()
652652+ {
653653+ $this->model = null;
644654 }
645655646656 /**