For example, parentModel is Users and foreignModel is Groups. Each user can be assigned to many groups. Each group can be assigned to many users.
Наследование: extends FOF30\Model\DataModel\Relation
Пример #1
0
 /**
  * @group       BelongsToMany
  * @group       BelongsToManyGetNew
  * @covers      FOF30\Model\DataModel\Relation\BelongsToMany::getNew
  */
 public function testGetNew()
 {
     $model = new Groups(static::$container);
     $relation = new BelongsToMany($model, 'Parts');
     $this->setExpectedException('FOF30\\Model\\DataModel\\Relation\\Exception\\NewNotSupported');
     $relation->getNew();
 }