ZF-2012: Validate type of set objects

Issue Type: Improvement Created: 2007-09-28T12:04:55.000+0000 Last Updated: 2012-11-20T20:52:47.000+0000 Status: Closed Fix version(s): Reporter: Ryan Boyd (rboyd) Assignee: None Tags: - Zend_Gdata

Related issues: Attachments:


Whenever a method requires a specific data model element type to be set in the call, the type should be enforced.

For instance, calling $entry->setTitle requires that a Zend_Gdata_App_Extension_Title be used. However, if you set a simple string, everything works with the set, but when saveXML or getDOM gets called, it's difficult to determine what failed-- because something like 'Call to a member function getDOM() on a non-object ...*' is thrown.


Posted by Jochen Hartmann (jhartmann) on 2009-02-26T16:30:51.000+0000

(batch downgrading outstanding issues older than 1 year)

Posted by Trevor Johns (tjohns) on 2009-02-26T16:50:23.000+0000

I'm bumping this one back up to major, because this comes up commonly enough that I consider it a serious usability problem.

Posted by Rob Allen (rob) on 2012-11-20T20:52:47.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.