Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ordering and paginating versions #5

Open
adjdred opened this issue Jul 30, 2015 · 2 comments
Open

Ordering and paginating versions #5

adjdred opened this issue Jul 30, 2015 · 2 comments

Comments

@adjdred
Copy link

adjdred commented Jul 30, 2015

Hi

How do you order the versions for an entity to have the latest first?

How do you paginate the results?

@dereuromark
Copy link
Contributor

I fixed it in project code with

		$versions = $textBox->versions();
		$versionList = [];
		foreach ($versions as $version) {
			$versionList[$version->version_id] = $version->version_id;
		}
		$versionList = array_reverse($versionList, true);

for a dropdown

but it would be nice if the table itself had a finder for this.

@davidyell
Copy link

Probably quite straight forward with Collections::combine

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

No branches or pull requests

3 participants