Cook onion in margarine until tender. Combine all ingredients. Shape into 6 cakes. Heat 1/8 inch oil in a heavy fry pan (preferably cast iron), add cakes and fry until golden brown. Turn carefully and brown the other side. Drain well on several thicknesses of paper towel.