I am a bit confused about what is a anemic domain model in OOP. Is a sort of bundle of Plain Old X Object (where X stands for the language you prefer), without behaviors (and responsibilities).
class AnemicDomainClass {
private $property;
public function getProperty() {
return $this->property;
}
public function setProperty($property) {
$this->property = $property;
}
}
... where all the logic is inside some services?
class SomeStuffService {
public static function doSomething(AnemicDomainClass $class) {
$class->setProperty(42);
}
}
This appear at the end of AnemicDomainModel article of Martin Fowler
In general, the more behavior you find in the services, the more likely you are to be robbing yourself of the benefits of a domain model. If all your logic is in services, you've robbed yourself blind.
This means what? That is better to prefer with smart object instead of smart services.