protected function prePersistOrUpdate($object, $method)
    {
        $analyzer = new ClassAnalyzer();
        foreach ($analyzer->getTraits($this) as $traitname) {
            $rc = new \ReflectionClass($traitname);
            if (method_exists($this, $exec = $method . $rc->getShortName())) {
                $this->$exec($object);
            } // executes $this->prePersistMyTrait() or $this->preUpdateMyTrait() method
        }

        return $this;
    }