Answer the question
In order to leave comments, you need to log in
Problem creating search. What it is?
I display data from the table by id_cart that came from the search. Instead of showing data, it shows:
O:18:"yii\db\ActiveQuery":32:{s:3:"sql";s:48:"SELECT * FROM clients WHERE id_cart = 9455958663";s: 2:"on";N;s:8:"joinWith";N;s:6:"select";N;s:12:"selectOption";N;s:8:"distinct";N;s: 4:"from";N;s:7:"groupBy";N;s:4:"join";N;s:6:"having";N;s:5:"union";N;s: 6:"params";a:0:{}s:18:"queryCacheDuration";N;s:20:"queryCacheDependency";N;s:27:"yii\base\Component_events";a:0:{} s:35:"yii\base\Component_eventWildcards";a:0:{}s:30:"yii\base\Component_behaviors";a:0:{}s:5:"where";N;s:5: "limit";N;s:6:"offset";N;s:7:
Answer the question
In order to leave comments, you need to log in
This is an object packed via serialize
object yii\db\ActiveQuery [
"sql" => "SELECT * FROM clients WHERE id_cart = 9455958663",
"on" => null,
"joinWith" => null,
"select" => null,
"selectOption" => null,
"distinct" => null,
"from" => null,
"groupBy" => null,
"join" => null,
"having" => null,
"union" => null,
"params" => [],
"queryCacheDuration" => null,
"queryCacheDependency"=> null,
"yii\base\Component_events" => [],
"yii\base\Component_eventWildcards" => [],
"yii\base\Component_behaviors" => [],
"where" => null,
"limit" => null,
"offset" => null,
"orderBy" => null,
"indexBy" => null,
"emulateExecution" => false,
"modelClass" => "frontend\models\Clients",
"with" => null,
"asArray" => null,
"multiple" => null,
...
]
You have an ActiveQuery class object. most likely you need to insert
queryOne() or queryAll() at the end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question