It seems to me that the only difference is that Active Record has CRUD methods in data container class, and the Repository pattern uses separate class for data container and CRUD methods, but surely I'm wrong.
What are the differences between Active Record and Repository pattern? When should I use which pattern?