/** * @return \Orm\Zed\Touch\Persistence\SpyTouchStorageQuery */ public function createTouchStorageQuery() { return SpyTouchStorageQuery::create(); }
/** * @param string $key * @param int $idLocale * * @return \Orm\Zed\Touch\Persistence\SpyTouchStorage */ protected function findOrCreateTouchKeyEntity($key, $idLocale) { return SpyTouchStorageQuery::create()->filterByKey($key)->filterByFkLocale($idLocale)->findOneOrCreate(); }