-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got problem with DataStorage #27
Comments
Thank you !!!!!! |
Yes, the same. Thanks. What the best way to fix it? |
I hope Yii2mod update this plugin for everyone can update to their projects. |
Hi, can you create PR for this issue? I'm sorry, I don't have enough time |
@phamngocson1988 As I understand, we need to change the following code $command->setSql("
REPLACE {{{$this->table}}}
SET
{{{$this->dataField}}} = :val,
{{{$this->idField}}} = :id
")->bindValues([
':id' => $identifier,
':val' => $sessionData,
]); to this one $command->setSql("
REPLACE {$this->table}
SET
{{{$this->dataField}}} = :val,
{{{$this->idField}}} = :id
")->bindValues([
':id' => $identifier,
':val' => $sessionData,
]); Right? |
Yes, it solved the problem for me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use this command, I got error:
$cart->add($item);
The problem is from DatabaseStorage::save() in this line
REPLACE {{{$this->table}}}
SET
{{{$this->dataField}}} = :val,
{{{$this->idField}}} = :id
The property $table you declare above is already in correct syntax ({{%cart}}), no need to add more double-curly braces
The text was updated successfully, but these errors were encountered: