mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-18 20:58:39 +00:00
merge
This commit is contained in:
commit
d20da74b77
|
|
@ -306,8 +306,8 @@ final class ReadMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Get mapper specific builder
|
||||
*
|
||||
* @param null|Builder $query Query to fill
|
||||
* @param array $columns Columns to use
|
||||
* @param Builder $query Query to fill
|
||||
* @param array $columns Columns to use
|
||||
*
|
||||
* @return Builder
|
||||
*
|
||||
|
|
@ -843,7 +843,7 @@ final class ReadMapper extends DataMapperAbstract
|
|||
->from($many['table'])
|
||||
->where($many['table'] . '.' . $many['self'], '=', $primaryKey);
|
||||
|
||||
if ($many['mapper']::TABLE !== $many['table']) {
|
||||
if ($many['table'] !== $many['mapper']::TABLE) {
|
||||
$query->leftJoin($many['mapper']::TABLE)
|
||||
->on($many['table'] . '.' . $src, '=', $many['mapper']::TABLE . '.' . $many['mapper']::PRIMARYFIELD);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -330,7 +330,7 @@ final class UpdateMapper extends DataMapperAbstract
|
|||
->from($many['table'])
|
||||
->where($many['table'] . '.' . $many['self'], '=', $objId);
|
||||
|
||||
if ($many['mapper']::TABLE !== $many['table']) {
|
||||
if ($many['table'] !== $many['mapper']::TABLE) {
|
||||
$query->leftJoin($many['mapper']::TABLE)
|
||||
->on($many['table'] . '.' . $src, '=', $many['mapper']::TABLE . '.' . $many['mapper']::PRIMARYFIELD);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -895,7 +895,7 @@ class Email implements MessageInterface
|
|||
|
||||
$errorcode = 0;
|
||||
if (\defined('INTL_IDNA_VARIANT_UTS46')) {
|
||||
$punycode = \idn_to_ascii($domain, $errorcode, INTL_IDNA_VARIANT_UTS46);
|
||||
$punycode = \idn_to_ascii($domain, $errorcode, \INTL_IDNA_VARIANT_UTS46);
|
||||
} else {
|
||||
$punycode = \idn_to_ascii($domain, $errorcode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user