| @@ 49-58 (lines=10) @@ | ||
| 46 | return $this->fields($fields); |
|
| 47 | } |
|
| 48 | ||
| 49 | public function primaryKey($primaryKey = null) |
|
| 50 | { |
|
| 51 | if (is_null($primaryKey)) { |
|
| 52 | return parent::primaryKey(); |
|
| 53 | } else { |
|
| 54 | $this->descriptor()->primaryKey = $primaryKey; |
|
| 55 | ||
| 56 | return $this->revalidate(); |
|
| 57 | } |
|
| 58 | } |
|
| 59 | ||
| 60 | public function foreignKeys($foreignKeys = null) |
|
| 61 | { |
|
| @@ 60-69 (lines=10) @@ | ||
| 57 | } |
|
| 58 | } |
|
| 59 | ||
| 60 | public function foreignKeys($foreignKeys = null) |
|
| 61 | { |
|
| 62 | if (is_null($foreignKeys)) { |
|
| 63 | return parent::foreignKeys(); |
|
| 64 | } else { |
|
| 65 | $this->descriptor()->foreignKeys = $foreignKeys; |
|
| 66 | ||
| 67 | return $this->revalidate(); |
|
| 68 | } |
|
| 69 | } |
|
| 70 | ||
| 71 | public function missingValues($missingValues = null) |
|
| 72 | { |
|
| @@ 71-80 (lines=10) @@ | ||
| 68 | } |
|
| 69 | } |
|
| 70 | ||
| 71 | public function missingValues($missingValues = null) |
|
| 72 | { |
|
| 73 | if (is_null($missingValues)) { |
|
| 74 | return parent::missingValues(); |
|
| 75 | } else { |
|
| 76 | $this->descriptor()->missingValues = $missingValues; |
|
| 77 | ||
| 78 | return $this->revalidate(); |
|
| 79 | } |
|
| 80 | } |
|
| 81 | ||
| 82 | public function revalidate() |
|
| 83 | { |
|