Skip to content

Phishnet MVP fixes and features#1

Draft
clifmo wants to merge 2 commits intosethadam1:mainfrom
phishnet:fix/phishnet-min-req
Draft

Phishnet MVP fixes and features#1
clifmo wants to merge 2 commits intosethadam1:mainfrom
phishnet:fix/phishnet-min-req

Conversation

@clifmo
Copy link
Copy Markdown

@clifmo clifmo commented Feb 11, 2026

Necessary bugfixes and features for phishnet.

Sections tested so far:

  • Homepage
  • Setlists
  • Forum main page
  • Forum thread
  • Backend main page

- replace count() rowCount misuse with real COUNT(*) query
(MySQL-safe)
  - refactor SELECT SQL construction into shared builder
  - add offset support in query processing (including MySQL
offset-without-limit handling)
  - preserve Model::delete([...]) via static magic dispatch and move
implementation to delete_where()
  - add instance $model->delete() compatibility via __call() ->
deleteRow()
  - add missing assign_attribute() and attributes() instance helpers
  - update README examples/arguments for working instance delete and
offset support
…vior

- add robust SQL builder path with support for offset and safer
pagination assembly
- fix count() to execute a real COUNT(*) query instead of relying on
rowCount() for SELECT
- add ActiveRecord compatibility helpers:
    - instance $model->delete() support
    - assign_attribute() and attributes()
    - static delete dispatch aliases
- introduce PdoFishDateTime and model hydration for
date/datetime/timestamp-like fields
- normalize persistence flows:
    - sanitize object-to-array conversion to skip mangled keys
    - handle DateTime serialization on save
    - improve PK-aware update/delete behavior across methods
- add primary-key auto-detection with per-table cache when model PK is
not declared
- expand dynamic finder support for _and_ compound finders
- add find_one_by_sql() convenience method and improve object hydration
paths for query APIs
- update docs to reflect current ActiveRecord delete and query argument
support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant