\
   |
   --ActiveRecordException
      |
      --ModelException
         |
         --ReadOnlyException

Class Details

Thrown when attempting to perform a write operation on a Model that is in read-only mode.


Class Methods

public void __construct ( str $class_name , str $method_name )

Sets the exception message to show the undefined property's name.

  • str $class_name - name of the model that is read only
  • str $method_name - name of method which attempted to modify the model