title: The Value For The Column "idauthdata" Is Not Supplied When Querying The Table "authdata"
body: <p>I'am trying to do an authorization in my Yii application.
  In my database I have the authData table which contains 2 primary key:</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `authdata` (
    `idauthData` int(11) NOT NULL AUTO_INCREMENT,
    `login` varchar(45) NOT NULL,
    `password` varchar(80) NOT NULL,
    `role` varchar(45) NOT NULL,
    `email` varchar(60) NOT NULL,
    `employee_idEmployee` int(11) NOT NULL,
    PRIMARY KEY (`idauthData`,`employee_idEmployee`),
    UNIQUE KEY `idauthData_UNIQUE` (`idauthData`),
    KEY `fk_authData_employee1_idx` (`employee_idEmployee`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
  </code></pre>
  
  <p>In my Authdata model I override the primaryKey() method:</p>
  
  <pre><code> public function primaryKey() 
      {
              return array('idauthData', 'employee_idEmployee');
      }
  </code></pre>
  
  <p>But when I trying to find a row in Authdata activeRecord class using findByPk() method I`am getting an exception: </p>
  
  <pre><code>private function getModel(){
        if (!$this-&gt;isGuest &amp;&amp; $this-&gt;_model === null){
            $this-&gt;_model = Authdata::model()-&gt;findByPk(array($this-&gt;id), array('select' =&gt; 'role'));
        }
        return $this-&gt;_model;
  }
  </code></pre>
  
  <p>The exception has next description:
  <strong>The value for the column "idauthData" is not supplied when querying the table "authdata".</strong></p>
  
  <pre><code>C:\xampp\htdocs\helloworld\protected\components\WebUser.php(14): CActiveRecord-&gt;findByPk(array("15"), array("select" =&gt; "role"))
  09 }
  10 }
  11 
  12 private function getModel(){
  13 if (!$this-&gt;isGuest &amp;&amp; $this-&gt;_model === null){
  14 $this-&gt;_model = Authdata::model()-&gt;findByPk(array($this-&gt;id), array('select' =&gt; 'role'));
  15 }
  16 return $this-&gt;_model;
  17 }
  18 }
  19 ?&gt;
  </code></pre>
  
  <p>And I don`t know how to resolve this problem.
  I know that this is a simple mistake and I just miss some moment. That why if somebody could help me I will be very glad!
  Thanks in advance </p>