mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-04 11:48:40 +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;
|
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.
|
* Delete data.
|
||||||
*
|
*
|
||||||
|
|
@ -79,7 +69,7 @@ interface DataMapperInterface
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public static function delete($obj) : int;
|
public static function delete($obj);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find data.
|
* Find data.
|
||||||
|
|
|
||||||
|
|
@ -1152,7 +1152,7 @@ class DataMapperAbstract implements DataMapperInterface
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @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__);
|
self::extend(__CLASS__);
|
||||||
$reflectionClass = new \ReflectionClass(get_class($obj));
|
$reflectionClass = new \ReflectionClass(get_class($obj));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user