mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
test fixes
This commit is contained in:
parent
7b76d797b8
commit
5876d88901
|
|
@ -224,15 +224,15 @@ final class DeleteMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Delete has many relations if the relation is handled in a relation table
|
* Delete has many relations if the relation is handled in a relation table
|
||||||
*
|
*
|
||||||
* @param string $member Property which contains the has many models
|
* @param string $member Property which contains the has many models
|
||||||
* @param array $objIds Objects which are related to the parent object
|
* @param null|array $objIds Objects which are related to the parent object
|
||||||
* @param mixed $objId Parent object id
|
* @param mixed $objId Parent object id
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function deleteRelationTable(string $member, ?array $objIds = null, mixed $objId) : void
|
public function deleteRelationTable(string $member, ?array $objIds, mixed $objId) : void
|
||||||
{
|
{
|
||||||
if ((empty($objIds) && $objIds !== null)
|
if ((empty($objIds) && $objIds !== null)
|
||||||
|| $this->mapper::HAS_MANY[$member]['table'] === $this->mapper::TABLE
|
|| $this->mapper::HAS_MANY[$member]['table'] === $this->mapper::TABLE
|
||||||
|
|
|
||||||
|
|
@ -531,7 +531,7 @@ class Graph
|
||||||
*/
|
*/
|
||||||
private function pathBetweenNodesDfs(
|
private function pathBetweenNodesDfs(
|
||||||
Node $node1,
|
Node $node1,
|
||||||
?Node $node2 = null,
|
Node $node2,
|
||||||
array &$visited,
|
array &$visited,
|
||||||
array &$path,
|
array &$path,
|
||||||
array &$paths
|
array &$paths
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user