Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Customer Model (customer)
- --------------
- id
- first_name
- last_name
- Customer Data:
- 1, John Smith
- =======
- Customer Phone Model (customer_phone)
- --------------
- customer_id
- phone_field_id
- phone
- Customer Phone Data:
- 1, 1, 2225553434
- 1, 3, 2225557656
- ======
- Phone Field (phone_field)
- --------------
- id
- name
- Phone Field Data:
- 1 => Home
- 2 => Business
- 3 => Mobile
- 4 => Fax
- //////
- I am trying to create a text field for Phone Field and when posted get the id of the field so I can save it to Customer Phone Model linking the phone type to the phone and linking the phone to the customer.
Advertisement
Add Comment
Please, Sign In to add comment