PHP Класс RedUNIT\Base\Threeway

Tests link/via relations, i.e. N-M tables with additional columns.
Автор: Gabor de Mooij and the RedBeanPHP Community
Наследование: extends RedUNIT\Base
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

testIssueWithDriverReturnID() публичный Метод

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
Результат void

testUniqueConstraintOnThreeways() публичный Метод

Test whether we can use threeway tables without being bothered by unique constraints.
public testUniqueConstraintOnThreeways ( ) : void
Результат void