parse_annotations(); } /** * Save the current instance. * * @return false|int * @throws ReflectionException If class is not defined. */ public function save() { return self::get_orm()->save( $this ); } /** * Retrieves the ORM instance from the dependency injection container. * * @return Mapper The ORM instance. */ protected static function get_orm(): Mapper { return wd_di()->get( Mapper::class ); } /** * Get table name. * * @return string */ public function get_table(): string { return $this->table; } }