E_InvalidEntityException

Thrown when an invalid data type is used as an entity, such as an associative array which is not yet supported due to a problem with references and the call_user_func_array() function.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/datamapper/package.module.datamapper.php  
  1. class E_InvalidEntityException extends E_NggErrorException 
  2. function __construct($message_or_previous = FALSE, $code = 0, $previous = NULL) 
  3. // We don't know if we have been passed a message yet or not 
  4. $message = FALSE; 
  5. // Determine if the first parameter is a string or exception 
  6. if ($message_or_previous) { 
  7. if (is_string($message_or_previous)) { 
  8. $message = $message_or_previous; 
  9. } else { 
  10. $previous = $message_or_previous; 
  11. // If no message was provided, create a default message 
  12. if (!$message) { 
  13. $message = "Invalid data type used for entity. Please use stdClass\n\t\t\t\tor a subclass of C_DataMapper_Model. Arrays will be supported in\n\t\t\t\tthe future."; 
  14. parent::__construct($message, $code);