Method Entity::defineRule become protected