/** * Initiliaze from array * * @param array $array Data * * @return \Gc\Media\Icon\Model */ public static function fromArray(array $array) { $iconTable = new Model(); $iconTable->setData($array); $iconTable->setOrigData(); return $iconTable; }
/** * Test * * @return void */ public function testDelete() { $this->object->setData(array('name' => 'IconTest', 'url' => 'IconTest')); $this->object->save(); $this->assertTrue($this->object->delete()); }