$collection = $this->_getCollection("counters");
$counter = $collection->findAndModify(
array(
"_id" => $name
),
array(
'$inc' => array(
"seq" => 1
)
)
);
return $counter["seq"];
回傳的是什麼?
__________________________________________後來補充______________________________________________
邏輯是
在counters中查處某個的表名例如(aaa_aaa)的seq
然後將這個表(aaa_aaa)的seq存入該表(aaa_aaa)中的id值