Fix basics (select insert)

This commit is contained in:
Dennis Eichhorn 2017-02-05 12:35:51 +01:00
parent 756d0a4e36
commit dc55f5a50e
2 changed files with 2 additions and 12 deletions

View File

@ -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.

View File

@ -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));