Author: Toby Zerner (toby.zerner@gmail.com)
Inheritance: implements Tobscure\JsonApi\SerializerInterface
Exemple #1
0
 /**
  * {@inheritdoc}
  */
 protected function getRelationshipFromMethod($name)
 {
     if ($relationship = $this->getCustomRelationship($name)) {
         return $relationship;
     }
     return parent::getRelationshipFromMethod($name);
 }
 /**
  * {@inheritdoc}
  */
 public function getRelationship($model, $name)
 {
     if ($relationship = $this->getCustomRelationship($model, $name)) {
         return $relationship;
     }
     return parent::getRelationship($model, $name);
 }