Update database and helper functionality in CodeIgniter
Revised database drivers, query builder, and file/inflector helpers for improved consistency and functionality. Updated copyrights, links, and standardized function names including deprecating `is_countable` in favor of `word_is_countable`. Added support for new SQL features and optimized query handling.
This commit is contained in:
@@ -73,7 +73,7 @@ class Payment extends BaseModel {
|
||||
->distinct()
|
||||
->join( 'invoices AS INV', 'INV.id', '=', 'payments.invoice_id' )
|
||||
->whereRaw( 'DATE_FORMAT(paymentdate, "%Y") = "' . $year . '"' )
|
||||
->lists( 'project_id' );
|
||||
->pluck( 'project_id' );
|
||||
|
||||
return $projects->toArray();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class Projectemployee extends BaseModel {
|
||||
public static function getAvailableEmployees( $projectID )
|
||||
{
|
||||
$currentEmployees = Self::whereProjectId( $projectID )
|
||||
->lists( 'user_id' );
|
||||
->pluck( 'user_id' );
|
||||
|
||||
$availableEmployees = User::selectRaw( "id, CONCAT(firstname, ' ', middlename, ' ', lastname) AS fullname" )
|
||||
->whereNotIn( 'id', $currentEmployees )
|
||||
|
||||
Reference in New Issue
Block a user