The ordinary mortgage on real property must be enforced by obtaining a decree of foreclosure of the mortgage. (CCP 726) Mechanic’s liens on real property must be enforced by foreclosure the same as on a mortgage. (Laubisch v. Roberdo, 43 CA 2d 702)