public static function destroyByUser($user_id)
	{
		$user_id = (is_array($user_id) ? $user_id : array($user_id));

		$blank = self::blank();

		$query = $blank->getQuery()
			->delete($blank->getTableName())
			->whereIn('user_id', $user_id);

		if (!$query->execute())
		{
			return false;
		}

		return true;
	}
public static function destroyByUser($user_id)
	{
		$user_id = (is_array($user_id) ? $user_id : array($user_id));

		$blank = self::blank();

		$query = $blank->getQuery()
			->delete($blank->getTableName())
			->whereIn('user_id', $user_id);

		if (!$query->execute())
		{
			return false;
		}

		return true;
	}
public static function destroyByUser ( $ user_id ) { $ user_id = ( is_array ( $ user_id ) ? $ user_id : array ( $ user_id ) ) ; $ blank = self :: blank ( ) ; $ query = $ blank -> getQuery ( ) -> delete ( $ blank -> getTableName ( ) ) -> whereIn ( 'user_id' , $ user_id ) ; if ( ! $ query -> execute ( ) ) { return false ; } return true ; }
Delete objects of this type by User ID

@param   mixed    $user_id  Integer or array of integers
@return  boolean
Delete objects of this type by User ID