protected function EntityType() { return Blog::GetType(); }
protected function EntityMap(Object\Domain $Domain) { return $Domain->GetEntityMap(Blog::GetType()); }
public function UpdateBlog(Entities\Blog $Blog) { $Blog->Description = md5($Blog->GetName()); $Blog->SetName(substr($Blog->GetName() . (strpos($Blog->Description, 'Test') !== false ? 'Foobar' . (string) $Blog->CreatedDate : $Blog->GetName() . 'Hi'), 0, 50)); $Blog->CreatedDate = (new \DateTime())->add((new \DateTime())->diff($Blog->CreatedDate, true)); }