X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FMapper%2FStorageInterface.php;fp=lib%2Fpq%2FMapper%2FStorageInterface.php;h=540d91f5dddfba58c43625dc0de4cfbd9506b37f;hp=eb75f633b63fdfe9d2ce375a71ec60d719c4b5b2;hb=861bb294d28aba35e011d9d35aad750d93c7dbd7;hpb=495f73776887b058d09f75b3f11840e5a0c3ae38 diff --git a/lib/pq/Mapper/StorageInterface.php b/lib/pq/Mapper/StorageInterface.php index eb75f63..540d91f 100644 --- a/lib/pq/Mapper/StorageInterface.php +++ b/lib/pq/Mapper/StorageInterface.php @@ -21,6 +21,22 @@ interface StorageInterface */ function find($where = [], $order = null, $limit = null, $offset = null); + /** + * Find parent + * @param object $object + * @param string $refName + * @return object + */ + function by($object, $refName); + + /** + * Find child rows + * @param object $object + * @param string $refName + * @return array + */ + function of($object, $refName); + /** * Delete * @param object $object