public function assignProperty($model, $model_key, $resource_key) { if ($this->partial_record && !property_exists($this, $resource_key)) { return; } $model->{$model_key} = $this->getAssignedProperty($resource_key); }