For for save problem in BeforeSaveEntity