public function testCamelizeMethod() { $this->assertEquals('csr', Type::camelize('CSR')); $this->assertEquals('jobPart', Type::camelize('JobPart')); }
/** * 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); }