/**
  * launches the Object
  *
  * @param  BaseObject  $object
  * @param  string      $namespace
  * @throws deppPropelActAsLaunchableException
  * @return the number of affected rows
  **/
 public function setLaunching(BaseObject $object, $namespace = 'home')
 {
     if ($object->isNew()) {
         throw new deppPropelActAsLaunchableException('Unsaved objects are not launchable');
     }
     if (!is_string($namespace)) {
         throw new deppPropelActAsLaunchableException('Namespace can only be a string');
     }
     $launch = new sfLaunching();
     $launch->setObjectModel(get_class($object));
     $launch->setObjectId($object->getPrimaryKey());
     $launch->setLaunchNamespace($namespace);
     $launch->setPriority(sfLaunchingPeer::getNewLaunchPriority($namespace));
     $ret = $launch->save();
     return $ret;
 }