/** * Check relation if it is a many to one relation. * * @return boolean */ public function isManyToOne() { $o2o = $this->foreign->parseComment('o2o'); if (!is_null($o2o)) { $isMany = !(bool) $this->getBooleanOption($o2o); } else { $isMany = (bool) $this->parameters->get('many'); } return $isMany; }
/** * Check relation if it is unidirectional * * @return bool */ public function isUnidirectional() { $o = $this->foreign->parseComment('unidirectional'); $is = (bool) $this->getBooleanOption($o); return $is; }