public getRelation ( $name ) : |
||
$name | ||
Résultat |
/** * @test */ public function shouldThrowExceptionIfNoRelation() { $model = new Model(array('fields' => array('field1'))); //when try { $model->getRelation('invalid'); $this->fail(); } catch (InvalidArgumentException $e) { } }