Commit 15841f3f authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[FEATURE] Implement sorting for memberships

parent e8ed9682
......@@ -53,6 +53,13 @@ class Membership extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
*/
protected $noFilter;
/**
* sorting
*
* @var int
*/
protected $sorting;
/**
* @return boolean
*/
......@@ -151,5 +158,14 @@ class Membership extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
return $this->personalMembership;
}
/**
* @param int $sorting
*/
public function setSorting($sorting)
{
$this->sorting = $sorting;
}
}
......@@ -28,7 +28,7 @@ class MemberRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
* @var array
*/
protected $defaultOrderings = array(
'membership' => QueryInterface::ORDER_ASCENDING,
'membership.sorting' => QueryInterface::ORDER_ASCENDING,
'name' => QueryInterface::ORDER_ASCENDING
);
......
......@@ -12,7 +12,7 @@ return array(
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => true,
'sortby' => 'sorting',
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
......
......@@ -61,6 +61,7 @@ CREATE TABLE tx_t3omembership_domain_model_membership (
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
starttime int(11) unsigned DEFAULT '0' NOT NULL,
endtime int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
t3_origuid int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment