@@ 63-77 (lines=15) @@ | ||
60 | * @param RecordInterface $object Database record instance to convert |
|
61 | * @return array Collection of key => value with SQL fields statements |
|
62 | */ |
|
63 | protected function &getQueryFields(RecordInterface &$object = null) |
|
64 | { |
|
65 | $collection = array(); |
|
66 | foreach ($this->fieldsAndTypes as $attribute => $type) { |
|
67 | if ($type == 'timestamp') { |
|
68 | continue; |
|
69 | } elseif ($this->primaryFieldName == $attribute) { |
|
70 | continue; |
|
71 | } |
|
72 | ||
73 | $collection[$attribute] = $object->$attribute; |
|
74 | } |
|
75 | ||
76 | return $collection; |
|
77 | } |
|
78 | ||
79 | // /** |
|
80 | // * Create new database entity record. |
@@ 135-149 (lines=15) @@ | ||
132 | * @param RecordInterface $object Database record instance to convert |
|
133 | * @return array Collection of key => value with SQL fields statements |
|
134 | */ |
|
135 | protected function &getQueryFields(RecordInterface &$object = null) |
|
136 | { |
|
137 | $collection = array(); |
|
138 | foreach ($this->fieldsAndTypes as $attribute => $type) { |
|
139 | if ($type == 'timestamp') { |
|
140 | continue; |
|
141 | } elseif ($this->primaryFieldName == $attribute) { |
|
142 | continue; |
|
143 | } |
|
144 | ||
145 | $collection[$attribute] = $object->$attribute; |
|
146 | } |
|
147 | ||
148 | return $collection; |
|
149 | } |
|
150 | } |
|
151 |