PHP Class RedUNIT\Base\Threeway

Tests link/via relations, i.e. N-M tables with additional columns.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Base
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
testIssueWithDriverReturnID ( ) : void Test whether a duplicate bean in the list isnt saved.
testUniqueConstraintOnThreeways ( ) : void Test whether we can use threeway tables without being bothered by unique constraints.

Method Details

testIssueWithDriverReturnID() public method

This was an issue with Postgres while testing the threeway tables. Postgres returned the ID as a string while other drivers returned a numeric value causing different outcome in array_diff when calculating the shared additions.
public testIssueWithDriverReturnID ( ) : void
return void

testUniqueConstraintOnThreeways() public method

Test whether we can use threeway tables without being bothered by unique constraints.