getResource() method did not implement the $serialize argument