src/Koldy/Db/ModelTraits/CreatedAt.php
public function setCreatedAtDateTime(?DateTime $createdAt)
    {
        $this->created_at = $createdAt === null ? null : $createdAt->format('Y-m-d H:i:s');
        return $this;
    }
public function setCreatedAtDateTime(?DateTime $createdAt)
    {
        $this->created_at = $createdAt === null ? null : $createdAt->format('Y-m-d H:i:s');
        return $this;
    }
public function setCreatedAtDateTime ( ? DateTime $ createdAt ) { $ this -> created_at = $ createdAt === null ? null : $ createdAt -> format ( 'Y-m-d H:i:s' ) ; return $ this ; }
Set the created at date time by passing instance of createdAt

@param DateTime $createdAt
@return $this
Set the created at date time by passing instance of createdAt