<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -309,8 +309,8 @@ module DataMapper
     # TODO SPEC
     def copy(source, destination, query = {})
       repository(destination) do
-        repository(source).read_many(query).each do |resource|
-          self.create(resource)
+        repository(source).read_many(scoped_query(query)).each do |resource|
+          self.create(resource.attributes)
         end
       end
     end</diff>
      <filename>lib/dm-core/model.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ff5c33fee6ec4a65389a2e34e3695f80f93ad731</id>
    </parent>
  </parents>
  <author>
    <name>Dirkjan Bussink</name>
    <email>d.bussink@gmail.com</email>
  </author>
  <url>http://github.com/sam/dm-core/commit/b97eee39fa827a49d8021b47623b03780675a5c7</url>
  <id>b97eee39fa827a49d8021b47623b03780675a5c7</id>
  <committed-date>2008-10-11T00:48:46-07:00</committed-date>
  <authored-date>2008-10-11T00:48:46-07:00</authored-date>
  <message>Fix Model#copy, this should really be specced...</message>
  <tree>b04e9a31dd40e7d6121b4278e4fa0b7e34a9b263</tree>
  <committer>
    <name>Dirkjan Bussink</name>
    <email>d.bussink@gmail.com</email>
  </committer>
</commit>
