【发布时间】:2015-09-06 03:06:59
【问题描述】:
我想使用特定的 hstore 键轻松选择多行。这里“fr”键。 可以看到如下结构:
+----+----------------+-------------------------+
| id | name_i18n | description_i18n |
+----+----------------+-------------------------+
| 1 | "fr"=> "nom 1" | "fr"=> "Description 1" |
+----+----------------+-------------------------+
| 2 | "fr"=> "nom 2" | "fr"=> "Description 2" |
+----+----------------+-------------------------+
| 3 | "fr"=> "nom 3" | "fr"=> "Description 3" |
+----+----------------+-------------------------+
我想用Pomm Project 获得这个结果。为此,我为此创建了一个可扩展的 ModelI18n。你可以看到here。
覆盖默认投影是一种好习惯吗?你有其他想法吗?
【问题讨论】:
标签: php postgresql pomm