Hi Guys,
I'm interested in redbean recently and try to learn how to apply it into my project.
I have 3 questions:
findCollection()
method, then use the loop next()
to go through every item.export()
method. I just thought I can access it via pointer operator like a object or am i missing any special things$oCollection = R::findCollection('Document', 'Type = ? LIMIT ? OFFSET ?', [$strDocType, $limit, $i]);
while ($item = $oCollection->next()) {
$arrItem = $item->export();
$strUID = $arrItem['UserID'];
}
Then i will use $strUID
to update for the list of records on another table.
count()
method, why is my table converted into the lower-case first letter with the underscore in the front of the table name? It cannot recognize my table and then return 0.Can you please show me the right way to do it? Because my tables are the upper-case first letter as above.
id
.I think it must have a method or sth to set the right ID. Because my fields (columns) are also the uppercase first letter.
Can anyone please help me clear those?
Thank you,
Thao.