Class ActiveRecord_AssociationTypeMismatch

Description

Thrown when an attempt is made to assign an invalid type to an association

Located in /activerecord/lib/ActiveRecord/Base.php (line 173)

Exception
   |
   --ActiveRecord_Error
      |
      --ActiveRecord_AssociationTypeMismatch
Method Summary
 ActiveRecord_AssociationTypeMismatch __construct (string $expected, mixed $received)
Methods
Constructor __construct (line 180)

Constructor

  • access: public
ActiveRecord_AssociationTypeMismatch __construct (string $expected, mixed $received)
  • string $expected: The expected type
  • mixed $received: The received object

Redefinition of:
ActiveRecord_Error::__construct()
Constructor

Inherited Methods

Inherited From ActiveRecord_Error

 ActiveRecord_Error::__construct()

Documentation generated on Wed, 25 Apr 2012 09:46:40 -0700 by phpDocumentor 1.4.3