krafthaus / bauhaus

Laravel 4 Admin Generator
http://bauhaus.krafthaus.nl/
GNU General Public License v2.0
1 stars 0 forks source link

Ability to cast identifier to non-integer type #71

Open ssmagin opened 9 years ago

ssmagin commented 9 years ago

I had a problem with mongodb table. In my case primary key had string type and FormBuilder::build failed with error because "$items->where($primaryKey, $this->getIdentifier());" did not return nothing. So, I propose to add to user model castIdentifier method if you need to cast your identifier to non-integer value.