`rg_id` bigint(20) DEFAULT NULL, `cpf_id` bigint(20) DEFAULT NULL,
if($this->input->post('stCPF') != '') { $cpf = new Documento(); $cpf->stNumero = $this->input->post('stCPF'); $cpf->save(); $obj->save($cpf, 'cpf'); }
A Database Error Occurred Error Number: 1054 Unknown column 'dcpf_id' in 'where clause' SELECT * FROM (`documentos_pfisicas`) WHERE `dcpf_id` = 48 AND `cpf_id` = 37