mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 06:48:41 +00:00
fix writeonly for has many
This commit is contained in:
parent
ea7d504f95
commit
37144b9a9f
|
|
@ -3176,6 +3176,10 @@ class DataMapperAbstract implements DataMapperInterface
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
||||||
foreach (static::$hasMany as $member => $value) {
|
foreach (static::$hasMany as $member => $value) {
|
||||||
|
if ($value['writeonly'] ?? false === true) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$query = new Builder(self::$db);
|
$query = new Builder(self::$db);
|
||||||
$query->prefix(self::$db->getPrefix());
|
$query->prefix(self::$db->getPrefix());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user