You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ Extensions for specific Nette packages use dedicated namespaces: `Nette\PHPStan\
103
103
104
104
### TableRowTypeResolver
105
105
106
-
`TableRowTypeResolver` is a shared service used by the three database extensions below. It resolves database table names to entity row class types using a configurable convention mask (e.g. `App\Entity\*Row` where `*` is replaced by PascalCase table name) and optional explicit table-to-class overrides. Checks class existence via `ReflectionProvider`. Config: `extension-nette.neon`parameters `nette.database.mapping.convention` and`nette.database.mapping.tables`.
106
+
`TableRowTypeResolver` is a shared service used by the three database extensions below. It resolves database table names to entity row class types using a configurable `tables` map. Keys may contain a single `*` wildcard (e.g. `forum_*`), and a bare `*`acts as a catch-all fallback. Class names may contain `*` which is replaced with PascalCase of the captured portion (or the full table name for exact keys). Exact keys take precedence over wildcards; wildcard entries are tried in declaration order. Checks class existence via `ReflectionProvider`. Mirrors `Nette\Database\DefaultEntityMapping`. Config: `extension-nette.neon`parameter`nette.database.mapping.tables`.
0 commit comments