public function create($entityObject, $executeImmediately = false, $logOperation = false, $checkRights = true) { $this->checkExecuteImmediately($executeImmediately); parent::create($entityObject, false, $logOperation, $checkRights); $this->createACL($entityObject); if ($executeImmediately == true) { $this->flush(); } }