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