src/UI/Field/EntityFieldPresenter.php 1 location
|
@@ 50-56 (lines=7) @@
|
| 47 |
|
/** |
| 48 |
|
* @param $id |
| 49 |
|
*/ |
| 50 |
|
public function setRowId($id, $column = 'id') |
| 51 |
|
{ |
| 52 |
|
$this->entry = DB::table($this->entity->getTableName())->where($column, $id)->first(); |
| 53 |
|
foreach ($this->types as $field) { |
| 54 |
|
$field->setValue($this->entry->{$field->fieldSlug}); |
| 55 |
|
} |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
/** |
| 59 |
|
* @return array |
src/UI/Field/EntityFieldsFormBuilder.php 1 location
|
@@ 45-51 (lines=7) @@
|
| 42 |
|
$this->setFieldTypes(); |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
public function setRowId($id, $column = "id") |
| 46 |
|
{ |
| 47 |
|
$this->entry = DB::table($this->entity->getTableName())->where($column, $id)->first(); |
| 48 |
|
foreach ($this->types as $field) { |
| 49 |
|
$field->setValue($this->entry->{$field->fieldSlug}); |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
/** |
| 54 |
|
* @return $this |