@@ 58-67 (lines=10) @@ | ||
55 | return $this->fields($fields); |
|
56 | } |
|
57 | ||
58 | public function primaryKey($primaryKey = null) |
|
59 | { |
|
60 | if (is_null($primaryKey)) { |
|
61 | return parent::primaryKey(); |
|
62 | } else { |
|
63 | $this->descriptor()->primaryKey = $primaryKey; |
|
64 | ||
65 | return $this->revalidate(); |
|
66 | } |
|
67 | } |
|
68 | ||
69 | public function foreignKeys($foreignKeys = null) |
|
70 | { |
|
@@ 69-78 (lines=10) @@ | ||
66 | } |
|
67 | } |
|
68 | ||
69 | public function foreignKeys($foreignKeys = null) |
|
70 | { |
|
71 | if (is_null($foreignKeys)) { |
|
72 | return parent::foreignKeys(); |
|
73 | } else { |
|
74 | $this->descriptor()->foreignKeys = $foreignKeys; |
|
75 | ||
76 | return $this->revalidate(); |
|
77 | } |
|
78 | } |
|
79 | ||
80 | public function missingValues($missingValues = null) |
|
81 | { |
|
@@ 80-89 (lines=10) @@ | ||
77 | } |
|
78 | } |
|
79 | ||
80 | public function missingValues($missingValues = null) |
|
81 | { |
|
82 | if (is_null($missingValues)) { |
|
83 | return parent::missingValues(); |
|
84 | } else { |
|
85 | $this->descriptor()->missingValues = $missingValues; |
|
86 | ||
87 | return $this->revalidate(); |
|
88 | } |
|
89 | } |
|
90 | ||
91 | public function revalidate() |
|
92 | { |