getName() public method

public getName ( )
Beispiel #1
0
 private function _addRelation(Relation $relation)
 {
     $name = $relation->getName();
     if (isset($this->_relations[$name])) {
         throw new InvalidArgumentException("{$this->modelClass} already has a relation: {$name}");
     }
     $this->_relations[$name] = $relation;
 }