Hi, i'm have a some problem with xPDO.
I'm create a table in DB, create schema and etc. All work fine, but if I save some object in DB, I can't get collection after save.
code:
$conn = new xPDO('mysql:host=localhost;dbname=mytour;port=3306;charset=utf8','root','');
$result = $conn->addPackage('review',...);
$res = $conn->newObject('review',array(
'fio' => $name,
'city' => $city,
'email' => $email,
'text' => $text,
'date' => time()
));
$result = $res->save();
$collect = $conn->getCollection('review',array(
'type'=>0
)
);
this is a part of code, all variables exists. after run this code in DB created new object, but collection after that is NULL.
please help and sorry for my english.
thank you all. it's was a some other problem, but you help me to find it.