我有一个数组如下
'topic' => array ( 'id' => 13, 'title' => 'Macros', 'content' => 'Macros. This is the updated content.
', 'created_at' => '2014-02-28 18:36:55', 'updated_at' => '2014-05-14 16:42:14', 'category_id' => '5', 'tags' => 'tags', 'referUrl' => '', 'user_id' => 3, 'videoUrl' => '', 'useDefaultVideoOverlay' => 'true', 'positive' => 0, 'negative' => 1, 'context' => 'macros', 'viewcount' => 60, 'deleted_at' => NULL, )
我想使用这个数组并将其转换/转换为主题模型.有没有办法可以做到这一点.
谢谢