示例#1
0
 /**
  * @return \Orm\Zed\Touch\Persistence\SpyTouchStorageQuery
  */
 public function createTouchStorageQuery()
 {
     return SpyTouchStorageQuery::create();
 }
示例#2
0
 /**
  * @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();
 }