relationsToArray() 공개 메소드

Get the model's relationships in array form.
public relationsToArray ( ) : array
리턴 array
 /**
  * Lets the model consume the old one
  * @param  Model  $model The old model
  * @return $this
  */
 public function consumeModel(Model $model)
 {
     $this->consumedModel = $model;
     $this->consumedModelProps = array_merge($model->attributesToArray(), $model->relationsToArray());
     return $this;
 }