ActiveModelBehavior not being triggered

Read first: https://docs.rs/sea-orm/latest/sea_orm/entity/trait.ActiveModelBehavior.html

Be careful that the behaviors only apply to the following methods:

  1. ActiveModelTrait::insert
  2. ActiveModelTrait::update
  3. ActiveModelTrait::save
  4. ActiveModelTrait::delete

It is possible to perform similar action with the functions of EntityTrait, but they will not trigger the behaviors, by design.