Customer

Click on the image to view a bigger version.

Customer Class Diagram

Customer Helpers

Some Twig helpers are available for your templates:

  • sonata_address_render(address, showName = true, showEditButton = false) displays a well-formatted address (needs an AddressInterface instance or an array as a parameter):
    • This helper uses the template SonataCustomerBundle:Addresses:_address.html.twig to display the formatted address.
    • If showName is set to true, the name of the address will be displayed if available;
    • If showEditButton is set to true and an Address ID is provided, an edit button will be rendered as well.