Compare commits
No commits in common. "f77c93ad209f38d0686667117ddca66cf2026c60" and "8e0dce3e71c7d7ea32b7bc60f2e8626d8bd0145a" have entirely different histories.
f77c93ad20
...
8e0dce3e71
@ -8,7 +8,7 @@ class Field implements \Notes\Annotation {
|
|||||||
|
|
||||||
public string $name;
|
public string $name;
|
||||||
|
|
||||||
public int|string $length;
|
public int $length;
|
||||||
|
|
||||||
public int $precision;
|
public int $precision;
|
||||||
|
|
||||||
|
@ -144,15 +144,6 @@ class Repository
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function clone(object|array $entity) : bool
|
|
||||||
{
|
|
||||||
foreach(Ulmus::resolveEntity($this->entityClass)->getPrimaryKeyField() as $key => $field) {
|
|
||||||
unset($entity->$key);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->save($entity);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function save(object|array $entity, ? array $fieldsAndValue = null, bool $replace = false) : bool
|
public function save(object|array $entity, ? array $fieldsAndValue = null, bool $replace = false) : bool
|
||||||
{
|
{
|
||||||
if ( is_array($entity) ) {
|
if ( is_array($entity) ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user