For example, parentModel is Articles and foreignModel is Users. Each article belongs to one user. One user can have
one or more article.
Example #2: parentModel is Phones and foreignModel is Users. Each phone belongs to one user. One user can have zero
or one phones.
/** * @group BelongsTo * @group BelongsToGetNew * @covers FOF30\Model\DataModel\Relation\BelongsTo::getNew */ public function testGetNew() { $model = $this->buildModel(); $relation = new BelongsTo($model, 'Parents'); $this->setExpectedException('FOF30\\Model\\DataModel\\Relation\\Exception\\NewNotSupported'); $relation->getNew(); }