| @@ 666-677 (lines=12) @@ | ||
| 663 | * Empty strings are treated as NULL. |
|
| 664 | * @return $this|\eXpansion\Bundle\LocalRecords\Model\Record The current object (for fluent API support) |
|
| 665 | */ |
|
| 666 | public function setCreatedAt($v) |
|
| 667 | { |
|
| 668 | $dt = PropelDateTime::newInstance($v, null, 'DateTime'); |
|
| 669 | if ($this->created_at !== null || $dt !== null) { |
|
| 670 | if ($this->created_at === null || $dt === null || $dt->format("Y-m-d H:i:s.u") !== $this->created_at->format("Y-m-d H:i:s.u")) { |
|
| 671 | $this->created_at = $dt === null ? null : clone $dt; |
|
| 672 | $this->modifiedColumns[RecordTableMap::COL_CREATED_AT] = true; |
|
| 673 | } |
|
| 674 | } // if either are not null |
|
| 675 | ||
| 676 | return $this; |
|
| 677 | } // setCreatedAt() |
|
| 678 | ||
| 679 | /** |
|
| 680 | * Sets the value of [updated_at] column to a normalized version of the date/time value specified. |
|
| @@ 686-697 (lines=12) @@ | ||
| 683 | * Empty strings are treated as NULL. |
|
| 684 | * @return $this|\eXpansion\Bundle\LocalRecords\Model\Record The current object (for fluent API support) |
|
| 685 | */ |
|
| 686 | public function setUpdatedAt($v) |
|
| 687 | { |
|
| 688 | $dt = PropelDateTime::newInstance($v, null, 'DateTime'); |
|
| 689 | if ($this->updated_at !== null || $dt !== null) { |
|
| 690 | if ($this->updated_at === null || $dt === null || $dt->format("Y-m-d H:i:s.u") !== $this->updated_at->format("Y-m-d H:i:s.u")) { |
|
| 691 | $this->updated_at = $dt === null ? null : clone $dt; |
|
| 692 | $this->modifiedColumns[RecordTableMap::COL_UPDATED_AT] = true; |
|
| 693 | } |
|
| 694 | } // if either are not null |
|
| 695 | ||
| 696 | return $this; |
|
| 697 | } // setUpdatedAt() |
|
| 698 | ||
| 699 | /** |
|
| 700 | * Indicates whether the columns in this object are only set to default values. |
|
| @@ 608-619 (lines=12) @@ | ||
| 605 | * Empty strings are treated as NULL. |
|
| 606 | * @return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object (for fluent API support) |
|
| 607 | */ |
|
| 608 | public function setLastOnline($v) |
|
| 609 | { |
|
| 610 | $dt = PropelDateTime::newInstance($v, null, 'DateTime'); |
|
| 611 | if ($this->last_online !== null || $dt !== null) { |
|
| 612 | if ($this->last_online === null || $dt === null || $dt->format("Y-m-d H:i:s.u") !== $this->last_online->format("Y-m-d H:i:s.u")) { |
|
| 613 | $this->last_online = $dt === null ? null : clone $dt; |
|
| 614 | $this->modifiedColumns[PlayerTableMap::COL_LAST_ONLINE] = true; |
|
| 615 | } |
|
| 616 | } // if either are not null |
|
| 617 | ||
| 618 | return $this; |
|
| 619 | } // setLastOnline() |
|
| 620 | ||
| 621 | /** |
|
| 622 | * Indicates whether the columns in this object are only set to default values. |
|