Ticket #94 (new 新機能/拡張)

Opened 2 years ago

Last modified 2 years ago

ByFooで終わるユーザ定義ファインダメソッドのデフォルトクエリにfooフィールドによるWHERE節を付与する

Reported by: iteman Owned by: iteman
Priority: major Milestone: 2.0.0dev1
Component: 01: マッパー Version: Subversion branch of 1.0
Keywords: Cc:
Blocking: Blocked By:

Description (last modified by iteman) (diff)

ByFooで終わるユーザ定義ファインダメソッドのデフォルトクエリにfooフィールドによるWHERE節を付与する。ただし、fooフィールドがテーブルに存在することが前提とする。

これによってfindXxxByIdとした場合のデフォルトクエリは下記のようになる。

SELECT * FROM $__table WHERE id = $id

Change History

Changed 2 years ago by iteman

  • description modified (diff)

Changed 2 years ago by iteman

  • milestone changed from 1.1.0 to 1.2.0
Note: See TracTickets for help on using tickets.