You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
320B

  1. <?php
  2. namespace App\Models;
  3. use CodeIgniter\Model;
  4. class PrestadorModel extends Model
  5. {
  6. protected $table = 'prestador';
  7. protected $primaryKey = 'idprestador';
  8. protected $useTimestamps = false;
  9. function getPrestador($id = null)
  10. {
  11. return $this->where('idprestador', $id)->first();
  12. }
  13. }