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