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

auto-create current DateTime in repository::save #79

Open
bauer01 opened this issue Nov 11, 2014 · 0 comments
Open

auto-create current DateTime in repository::save #79

bauer01 opened this issue Nov 11, 2014 · 0 comments
Labels
Milestone

Comments

@bauer01
Copy link
Member

bauer01 commented Nov 11, 2014

/**
 * @property DateTime $createdTime m:default(self::autocreateTime)
 */
class Entity extends \UniMapper\Entity
{
    public function autoCreateTime()
    {
        return new \DateTime;
    }
}

$entity->createdTime = new DateTime; // It's really boring :-(
$repo->save($entity);
@bauer01 bauer01 changed the title handle current DateTime in repository::save automatically auto-create current DateTime in repository::save Nov 11, 2014
@bauer01 bauer01 added feature and removed proposal labels Oct 31, 2015
@bauer01 bauer01 added this to the 2.0.0 milestone Oct 31, 2015
@bauer01 bauer01 mentioned this issue Oct 31, 2015
10 tasks
@bauer01 bauer01 mentioned this issue Mar 27, 2018
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant