No Child Records 500 Error |
I have a controller called Constituents. The following returns one Constituent record, as it should.
PHP Code: $constituent = $Model->find($id); Constituents have optional child records called Addresses, Phones, and Emails. In the controller, I call the following: PHP Code: $constituent->addresses = $AddressModel->where( 'constituent_id', $id)->findAll(); Thanks.
|
Welcome Guest, Not a member yet? Register Sign In |