Esempio n. 1
0
 /**
  * Construct this relation field
  * @param string $name name of the field
  * @param string $relationModelName name of the model for which this field defines a relation
  * @return null
  */
 public function __construct($name, $relationModelName)
 {
     parent::__construct($name, Field::TYPE_FOREIGN_KEY);
     $this->setRelationModelName($relationModelName);
 }