private function load(CustomerRecord $customer, PhoneRecord $phone, array $post) { //var_dump($_POST);die; return $customer->load($post) and $phone->load($post) and $customer->validate() and $phone->validate(['number']); }
private function load(CustomerRecord $customer, PhoneRecord $phone, array $post) { return $customer->load($post) and $phone->load($post) and $customer->validate() and $phone->validate(['number']); }