Example #1
0
 public function testCamelizeMethod()
 {
     $this->assertEquals('csr', Type::camelize('CSR'));
     $this->assertEquals('jobPart', Type::camelize('JobPart'));
 }
Example #2
0
 /**
  * Attempt to guess the primary key field.
  *
  * @return string
  */
 protected function guessPrimaryKey()
 {
     if ($this->hasProperty(Client::PRIMARY_KEY)) {
         return Client::PRIMARY_KEY;
     }
     if ($this->hasProperty('id')) {
         return 'id';
     }
     return Type::camelize($this->type);
 }