title: Database Adapter not setting schemas in Phalcon
body: <p>I'm having a problem with my micro application, I use PostgreSQL as database, but the database adapter I create don't set the schema for the models and I need to do it manually using the models manager, how can I avoid setting the schema manually for every model?</p>
  
  <p>This is how I'm creating the Adapter</p>
  
  <pre><code>use Phalcon\Db\Adapter\Pdo\Postgresql as DbAdapter;
  ...
  
  return new DbAdapter(array(
      "host" =&gt; $config-&gt;database-&gt;host,
      "username" =&gt; $config-&gt;database-&gt;username,
      "password" =&gt; $config-&gt;database-&gt;password,
      "dbname" =&gt; $config-&gt;database-&gt;dbname,
      "schema" =&gt; $config-&gt;database-&gt;schema,
  ));
  </code></pre>
  
  <p>This doesn't work</p>
  
  <pre><code>$person = new Person;
  $person = $person-&gt;findFirst(1);
  </code></pre>
  
  <p>This works:</p>
  
  <pre><code>$person = new Person;
  $app-&gt;modelsManager-&gt;setModelSchema($person, 'myschema');
  $person = $person-&gt;findFirst(1);
  </code></pre>
  
  <p>If I don't set the schema manually then the model object can't find the tables and yes, the schema variable is correctly set.</p>
  
  <p>Also I think Phalcon is always using the public schema instead of the schema I set up.</p>
  
  <p>Thanks</p>