Sign in
apache
/
grails-data-mapping
/
refs/heads/3.x
/
.
/
grails-documentation-redis
/
src
/
docs
/
ref
/
Domain Classes
/
pop.gdoc
blob: 8628a6d9d2c827d159f4c8f709b8e47937c07bfd [
file
] [
log
] [
blame
]
h1
.
pop
h2
.
Purpose
Returns
and
deletes random domain instance
.
h2
.
Examples
{
code
}
def
randomPerson
=
Person
.
pop
()
{
code
}
h2
.
Description
Similar
to the
@random@
method but deletes the domain instance at the same time
.