mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Fix basics (select insert)
This commit is contained in:
parent
756d0a4e36
commit
dc55f5a50e
|
|
@ -59,16 +59,6 @@ interface DataMapperInterface
|
|||
*/
|
||||
public static function update($obj) : int;
|
||||
|
||||
/**
|
||||
* Save data.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function save();
|
||||
|
||||
/**
|
||||
* Delete data.
|
||||
*
|
||||
|
|
@ -79,7 +69,7 @@ interface DataMapperInterface
|
|||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function delete($obj) : int;
|
||||
public static function delete($obj);
|
||||
|
||||
/**
|
||||
* Find data.
|
||||
|
|
|
|||
|
|
@ -1152,7 +1152,7 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function delete($obj, int $relations = RelationType::REFERENCE) /* : ?int */
|
||||
public static function delete($obj, int $relations = RelationType::REFERENCE)
|
||||
{
|
||||
self::extend(__CLASS__);
|
||||
$reflectionClass = new \ReflectionClass(get_class($obj));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user