title: Using CodeIgniter Model as an object manager/factory
body: <p>I'm currently designing a game that utilises CodeIgniter, but I don't think the singleton approach to models is the way I want to handle the game-related objects in the DB.</p>
  
  <p>I want to use a CodeIgniter Model class to handle the basic CRUD operations of the objects, but have the objects as PHP Classes.</p>
  
  <p>Example:</p>
  
  <pre><code> $this-&gt;load-&gt;model('playermodel');
   $player = $this-&gt;playermodel-&gt;get($player_id); // Returns a Player object
  
   // Call modifying operations on the player (equip item, take damage etc.)
  
   $this-&gt;playermodel-&gt;save($player); // Commits updated Player back to DB
  
   $player2 = $this-&gt;playermodel-&gt;create(); // Basically calls new Player()
  </code></pre>
  
  <p>I'm fairly new to CodeIgniter, would something like this be going against any kind of CodeIgniter or MVC design rules? And if so, could anyone recommend me another approach to my problem?</p>