Skip to content

Commit 8c60a94

Browse files
author
David Nahodyl
committed
updated to remove references to setting containerFields property since containers are now detected
1 parent 470d08c commit 8c60a94

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ This package lets you easily connect to your FileMaker database through the Data
99
* FMModel class
1010
* Extends the base Model class, allowing compatibility with many standard model features
1111
* Relationship support
12-
* Container data handling
12+
* Container data read/write
1313
* Automatic name/layout/table resolution
14-
* Portal data support
14+
* Portal data read/write
1515
* FileMaker -> Laravel field name remapping
1616
* Automatic authentication and session management
1717
* Eloquent query builder and base query builder
@@ -91,14 +91,6 @@ This package supports both reading and writing container field data. Container f
9191

9292
When setting a container field you should set it as an `Illuminate/HTTP/File` object. These attributes will be written back to your container fields along with any other model updates when the `save()` method is called on your model object.
9393

94-
It is important for the class to know which fields are container fields so that they can be handled appropriately. Any container fields should be listed in a `$containerFields` property of your model.
95-
96-
```
97-
protected $containerFields = [
98-
'photo'
99-
];
100-
```
101-
10294
### Mapping FileMaker Fields
10395
Sometimes you might be working with a FileMaker database with inconvenient field names. These fields can be remapped to model attributes by setting the `$fieldMapping` attribute. This should be an array of strings, mapping FileMaker Field Name => New Attribute Name.
10496

@@ -134,10 +126,6 @@ class Person extends FMModel
134126
'last name' => 'nameLast'
135127
];
136128
137-
// Array of FileMaker container fields
138-
protected $containerFields = [
139-
'photo'
140-
];
141129
142130
public function pets(){
143131
return $this->hasMany(Pet::class);

0 commit comments

Comments
 (0)