Skip to content

insertUpdate doesn't work #2

@tamvm

Description

@tamvm

Hi guy,

Thanks for your contribution, but I managed to use with inserUpdate (INSERT ON UPDATE DUPLICATE) as

Yii::app()->db->createCommand()->insertUpdate('table_name'
      array("fiverr_user_id" => "548",
    ),
    array("conversation" => "Asd",
      "user_id" => "5",
      "client_name" => "deeyazzious",
      "conversation" => "asd"
));

It raises this exception:

Array to string conversion

I also try to debug in your script and found out that you may pass wrong order params for _insertPrepare. Please help me test it again.

Thanks,

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions