たとえば(逐語的ではありません)
/**
@Entity
*/
class Event
{
/**
@Column
*/
protected $time_start;
/** .. */
protected $time_end;
/** getters, setters, etc */
/** @return duration of event as a string, non-table function */
public function getDuration() { ... }
}
それとも、ORM は単なるテーブルであり、それ以上のものではありませんか?
誰もが独自の意見を持っているため、これは主観的な見方になる可能性がありますが、そこでのプログラミング、および実行すること、および実際に実行してはならないことにおいて. これがそのケースの1つであるかどうか疑問に思っていました。