Update deprecated calls
Merge pull request #24 from symfony2admingenerator/fix-deprecated_method

Update deprecated calls