Change Collection Name

Permalink
Hi

I can find a collection's name by doing

$c->getCollectionName();


How do I change the name? There does not seem to be a setCollectionName method.

Thanks

yolk
 
Remo replied on at Permalink Best Answer Reply
Remo
There isn't one.. You have to use something like this:

$c = Page::getByID(1);
$c->update(array('cName' => $name, 'cDescription' => $description));
yolk replied on at Permalink Reply
yolk
Couldn't see the woods for the trees! Thanks!