| @@ 518-529 (lines=12) @@ | ||
| 515 | * Empty strings are treated as NULL. |
|
| 516 | * @return $this|\Jalle19\StatusManager\Database\Connection The current object (for fluent API support) |
|
| 517 | */ |
|
| 518 | public function setStarted($v) |
|
| 519 | { |
|
| 520 | $dt = PropelDateTime::newInstance($v, null, 'DateTime'); |
|
| 521 | if ($this->started !== null || $dt !== null) { |
|
| 522 | if ($this->started === null || $dt === null || $dt->format("Y-m-d H:i:s") !== $this->started->format("Y-m-d H:i:s")) { |
|
| 523 | $this->started = $dt === null ? null : clone $dt; |
|
| 524 | $this->modifiedColumns[ConnectionTableMap::COL_STARTED] = true; |
|
| 525 | } |
|
| 526 | } // if either are not null |
|
| 527 | ||
| 528 | return $this; |
|
| 529 | } // setStarted() |
|
| 530 | ||
| 531 | /** |
|
| 532 | * Set the value of [type] column. |
|
| @@ 610-621 (lines=12) @@ | ||
| 607 | * Empty strings are treated as NULL. |
|
| 608 | * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support) |
|
| 609 | */ |
|
| 610 | public function setStarted($v) |
|
| 611 | { |
|
| 612 | $dt = PropelDateTime::newInstance($v, null, 'DateTime'); |
|
| 613 | if ($this->started !== null || $dt !== null) { |
|
| 614 | if ($this->started === null || $dt === null || $dt->format("Y-m-d H:i:s") !== $this->started->format("Y-m-d H:i:s")) { |
|
| 615 | $this->started = $dt === null ? null : clone $dt; |
|
| 616 | $this->modifiedColumns[SubscriptionTableMap::COL_STARTED] = true; |
|
| 617 | } |
|
| 618 | } // if either are not null |
|
| 619 | ||
| 620 | return $this; |
|
| 621 | } // setStarted() |
|
| 622 | ||
| 623 | /** |
|
| 624 | * Sets the value of [stopped] column to a normalized version of the date/time value specified. |
|
| @@ 630-641 (lines=12) @@ | ||
| 627 | * Empty strings are treated as NULL. |
|
| 628 | * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support) |
|
| 629 | */ |
|
| 630 | public function setStopped($v) |
|
| 631 | { |
|
| 632 | $dt = PropelDateTime::newInstance($v, null, 'DateTime'); |
|
| 633 | if ($this->stopped !== null || $dt !== null) { |
|
| 634 | if ($this->stopped === null || $dt === null || $dt->format("Y-m-d H:i:s") !== $this->stopped->format("Y-m-d H:i:s")) { |
|
| 635 | $this->stopped = $dt === null ? null : clone $dt; |
|
| 636 | $this->modifiedColumns[SubscriptionTableMap::COL_STOPPED] = true; |
|
| 637 | } |
|
| 638 | } // if either are not null |
|
| 639 | ||
| 640 | return $this; |
|
| 641 | } // setStopped() |
|
| 642 | ||
| 643 | /** |
|
| 644 | * Set the value of [title] column. |
|