Into Document.php there is no set CEvent like EModelEvent in the header of file. I fix the issue in my project with YII adding a new line at row 11 ```php 9 use CMap; 10 use CModelEvent; 11 use CEvent; ## added this line ... ```