code: def _read(self, directory, filename, session, path, name, extension,
                spatial=None, spatialReferenceID=None, replaceParamFile=None):
          
          yml_events = []
          with open(path) as fo:
              yml_events = yaml.load(fo)
  
          for yml_event in yml_events:
              if os.path.exists(os.path.join(directory, yml_event.subfolder)):
                  orm_event = yml_event.as_orm()
                  if not self._similar_event_exists(orm_event.subfolder):
                      session.add(orm_event)
                      self.events.append(orm_event)
  
          session.commit()
docs: ProjectFileEvent Read from File Method