public function get(Jam_Validated $model, $value, $is_changed) { if (!$is_changed and !$value and !$model->loaded() and Jam_Association_Creator::current()) { $value = Jam::find($this->foreign_model, Jam_Association_Creator::current()); $is_changed = TRUE; if ($this->inverse_of) { $value->{$this->inverse_of} = $model; } } return parent::get($model, $value, $is_changed); }