/** * Locks the Propel behavior, so nothing can be queued. * @param bool $to If true, the behavior is locked. If false, the behavior is unlocked. */ public static function setLock($to) { self::$locked = (bool) $to; }