mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-16 00:18:41 +00:00
Remove find
This commit is contained in:
parent
df124c6f9e
commit
ab176568e9
|
|
@ -140,23 +140,4 @@ class CalendarMapper extends DataMapperAbstract
|
||||||
|
|
||||||
return $objId;
|
return $objId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Find.
|
|
||||||
*
|
|
||||||
* @param array $columns Columns to select
|
|
||||||
*
|
|
||||||
* @return Builder
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public static function find(...$columns) : Builder
|
|
||||||
{
|
|
||||||
return parent::find(...$columns)->from('account_permission')
|
|
||||||
->where('account_permission.account_permission_for', '=', 'calendar')
|
|
||||||
->where('account_permission.account_permission_id1', '=', 1)
|
|
||||||
->where('calendar.calendar_id', '=', new Column('account_permission.account_permission_id2'))
|
|
||||||
->where('account_permission.account_permission_r', '=', 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -138,23 +138,4 @@ class EventMapper extends DataMapperAbstract
|
||||||
|
|
||||||
return $objId;
|
return $objId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Find.
|
|
||||||
*
|
|
||||||
* @param array $columns Columns to select
|
|
||||||
*
|
|
||||||
* @return Builder
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public static function find(...$columns) : Builder
|
|
||||||
{
|
|
||||||
return parent::find(...$columns)->from('account_permission')
|
|
||||||
->where('account_permission.account_permission_for', '=', 'calendar_event')
|
|
||||||
->where('account_permission.account_permission_id1', '=', 1)
|
|
||||||
->where('calendar_event.calendar_event_id', '=', new Column('account_permission.account_permission_id2'))
|
|
||||||
->where('account_permission.account_permission_r', '=', 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -128,22 +128,4 @@ class ScheduleMapper extends DataMapperAbstract
|
||||||
return $objId;
|
return $objId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Find.
|
|
||||||
*
|
|
||||||
* @param array $columns Columns to select
|
|
||||||
*
|
|
||||||
* @return Builder
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public static function find(...$columns) : Builder
|
|
||||||
{
|
|
||||||
return parent::find(...$columns)->from('account_permission')
|
|
||||||
->where('account_permission.account_permission_for', '=', 'calendar')
|
|
||||||
->where('account_permission.account_permission_id1', '=', 1)
|
|
||||||
->where('calendar.calendar_id', '=', new Column('account_permission.account_permission_id2'))
|
|
||||||
->where('account_permission.account_permission_r', '=', 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user