关于cakephpmodel的有关问题
时间:2021-07-01 10:21:17
帮助过:20人阅读
关于cakephp model的问题
数据结构如下:
Array
(
[Test] => Array
(
[id] => 5
[start_time] =>
[end_time] =>
[date] => 0000-00-00
[title] => Array
(
[en_us] => title_test
[zh_hk] => zh_hk_test
[zh_cn] => zh_cn_test
)
[url] => Array
(
[en_us] => url_test
[zh_hk] => url_test_zh_hk
[zh_cn] => url_test_zh_cn
)
[ready] => 1
[modified_by] => 1
)
)
saveAll的时候,如何只将zh_hk的值保存到title和url字段中?谢谢
------解决方案--------------------
保存什么不是你决定的吗?