/** * @param string * @param string * @param string * @param string * @param string|NULL * @param bool|NULL */ public function __construct($parentEntityName, $parentParam, $childRepositoryName, $childParam, $relationshipClass = NULL, $mapped = NULL) { if (!$childParam) { $mapped = self::MAPPED_HERE; } parent::__construct(MetaData::ManyToMany, $parentEntityName, $parentParam, $childRepositoryName, $childParam, $relationshipClass); $this->mapped = (bool) $mapped; }
/** * @param string * @param string * @param string * @param string * @param string|NULL */ public function __construct($parentEntityName, $parentParam, $childRepositoryName, $childParam, $relationshipClass = NULL) { if (!$childParam) { $childParam = $parentEntityName; if ($childParam[0] != '_') { $childParam[0] = $childParam[0] | " "; } // lcfirst } parent::__construct(MetaData::OneToMany, $parentEntityName, $parentParam, $childRepositoryName, $childParam, $relationshipClass); }