title: Codeigniter / Eloquent selecting but not inserting
body: <p>I've followed <a href="https://marceau.casals.fr/blog/2015/02/utiliser-eloquent-orm-avec-codeigniter" rel="nofollow noreferrer">this</a> (french) and <a href="http://jamieonsoftware.com/post/90299647695/using-eloquent-orm-inside-codeigniter-with-added" rel="nofollow noreferrer">this</a> tutorials to use Eloquent in CodeIgniter 3 application.</p>
  
  <p>The selection methods work as expected, even with relationships, but the inserting / updating methods are not working and not returning any error either. I've search for similar problems but couldn't solve mine, so I hope someone can help me on this.</p>
  
  <p>One of my model :</p>
  
  <pre><code>&lt;?php
  
  require_once('Eloquent.php');
  
  use \Illuminate\Database\Eloquent\Model as Eloquent;
  
  class User extends Eloquent { 
  
      //Eloquent vars
      public $table = "app_users";
      protected $primaryKey = "id";
      public $timestamps = false;
  }
  </code></pre>
  
  <p>An insertion that returns 1 but isn't actually inserting the data into the db : </p>
  
  <pre><code>  $client = new User;
    $client-&gt;id = $id;
    $client-&gt;username = 'username';
    $client-&gt;first_name = 'first_name';
    $client-&gt;last_name = 'last_name';
    $client-&gt;mail = 'mail';
    $result = $client-&gt;save();
  </code></pre>
  
  <p>The insertion silently fails... any hint would be much appreciated, whether about how to solve this or to debug it! Once again the find(), all(), etc methods are working fine, so Eloquent seems to function properly...</p>