Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Added Foundation Import
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pereira-da-silva committed Dec 28, 2017
1 parent 5d028f2 commit 4508c71
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BartlebysCore.flexions/App/templates/models/model.swift.php
Expand Up @@ -136,7 +136,8 @@ function _propertyValueString(PropertyRepresentation $property){
}

if ($isBartlebysCore) {
$imports = "";
$imports = "
import Foundation";
}else{
$imports = "
import Foundation
Expand Down
Expand Up @@ -2,6 +2,7 @@

<?php echo $imports ?>


// MARK: <?php echo $d->description?>

open class <?php echo ucfirst($d->name)?>:<?php echo GenerativeHelperForSwift::getBaseClass($d); ?>{
Expand Down
2 changes: 2 additions & 0 deletions Sources/BartlebyCore/ManagedModel.swift
Expand Up @@ -8,6 +8,8 @@
// Copyright (c) 2016 https://bartlebys.org All rights reserved.
//

import Foundation

// MARK: Bartleby's Core base Managed Entity is Codable and Collectible but not Tolerent (CollectionOf requires the collected type to be tolerent)
open class ManagedModel:Model{

Expand Down
2 changes: 2 additions & 0 deletions Sources/BartlebyCore/Metrics.swift
Expand Up @@ -8,6 +8,8 @@
// Copyright (c) 2016 https://bartlebys.org All rights reserved.
//

import Foundation

// MARK: Bartleby's Core: a value object used to record metrics
open class Metrics:ManagedModel{

Expand Down

0 comments on commit 4508c71

Please sign in to comment.