emrahoruc
emrahoruc
@nuryagdym Extend the MY_Model and add your methods. ```php class Base_Model extends MY_Model { public function __construct() { parent::__construct(); } public function whereNull($key) { $this->where($key . ' IS NULL', NULL,...
Same issue here. i can not access under pivot table... I attachaed all information for testing.  ## Database ``` sql `-- ----------------------------------------------------- -- Table `groups` -- ----------------------------------------------------- CREATE TABLE...
@avenirer Where is "join: true" in use in the MY_Model? I can not locate it! https://github.com/avenirer/CodeIgniter-MY_Model/issues/207#issuecomment-280690478 ```php $results = $this->person_model->with_role('fields:whatever,whatever2,whatever3|join:true')->order_by('roles.title, persons.last_name','asc')->get_all(); ```
@avenirer > Do not tell your friend what your enemy should not know. _Arthur Schopenhauer_ ^_^ https://github.com/avenirer/CodeIgniter-MY_Model/blob/version-3.0/core/MY_Model.php#L1446
It can related to PHP version. https://www.codeigniter.com/user_guide/general/requirements.html#server-requirements > PHP version 5.6 or newer is recommended. > It should work on 5.3.7 as well, but we strongly advise you NOT to...
Use fields instead select. Also use like function as $this->db->like("field", $value);
Try this; $this->db->like('id_empresa', $id_empresa); $log = $this->log_cambios_trabajadores->with_administrador('fields: nombre, apellido_paterno, apellido_materno') ->with_trabajador('fields: nombre, control') ->get_all();
Not at all ;)
Maybe we need to add FALSE control like below(?). This solves my problem for going to the form without losing post data at least. 418: $data = $this->trigger('before_create',$data); if($data !==...
I have Zkteco Sc 403 and same issue.